Skip to content

Commit

Permalink
clean up method argument handling
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Oct 31, 2023
1 parent eb22b4c commit 5f0714c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,8 @@ public function sortByModifiedTime(): static
*
* @see CustomFilterIterator
*/
public function filter(\Closure $closure /* , bool $prune = false */): static
public function filter(\Closure $closure, bool $prune = false): static
{
$prune = 1 < \func_num_args() ? func_get_arg(1) : false;
$this->filters[] = $closure;

if ($prune) {
Expand Down

0 comments on commit 5f0714c

Please sign in to comment.