We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5869750 commit 555e30dCopy full SHA for 555e30d
src/JsPhpize/Compiler/Helpers/DotWithArrayPrototype.h
@@ -12,7 +12,7 @@ function ($base) {
12
}
13
if ($key === 'filter') {
14
return function ($callback, $flag = 0) use ($base) {
15
- return array_filter($base, $callback, $flag);
+ return func_num_args() === 1 ? array_filter($base, $callback) : array_filter($base, $callback, $flag);
16
};
17
18
if ($key === 'pop') {
0 commit comments