Skip to content

Commit c72a1a7

Browse files
committed
Optimize perf by replacing call_user_func with dynamic vars
1 parent a17cac7 commit c72a1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Iterator/CustomFilterIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function accept()
5151
$fileinfo = $this->current();
5252

5353
foreach ($this->filters as $filter) {
54-
if (false === \call_user_func($filter, $fileinfo)) {
54+
if (false === $filter($fileinfo)) {
5555
return false;
5656
}
5757
}

0 commit comments

Comments
 (0)