Skip to content

Commit

Permalink
Removed unnecessary pass by reference.
Browse files Browse the repository at this point in the history
Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Apr 29, 2020
1 parent 20d2d48 commit 6c6307e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Yasumi/Filters/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class AbstractFilter extends FilterIterator implements Countable
*/
public function count(): int
{
$names = \array_map(static function (&$holiday) {
$names = \array_map(static function ($holiday) {
if ($holiday instanceof SubstituteHoliday) {
return $holiday->substitutedHoliday->shortName;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Yasumi/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public function whatWeekDayIs(string $shortName): int
*/
public function count(): int
{
$names = \array_map(static function (&$holiday) {
$names = \array_map(static function ($holiday) {
if ($holiday instanceof SubstituteHoliday) {
return $holiday->substitutedHoliday->shortName;
}
Expand Down

0 comments on commit 6c6307e

Please sign in to comment.