@@ -438,7 +438,7 @@ |
||
| 438 | 438 | * |
| 439 | 439 | * @internal |
| 440 | 440 | * |
| 441 | - * @param mixed $needle The value to be searched for |
|
| 441 | + * @param callable $needle The value to be searched for |
|
| 442 | 442 | * @param array $haystack The array |
| 443 | 443 | * |
| 444 | 444 | * @return int|bool The top-level key containing the needle if found, false otherwise |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // filter out any that don't begin with "on" |
| 100 | 100 | $methods = array_filter( |
| 101 | 101 | $methods, |
| 102 | - function (\ReflectionMethod $m) { |
|
| 102 | + function(\ReflectionMethod $m) { |
|
| 103 | 103 | return (strpos($m->name, 'on') === 0); |
| 104 | 104 | } |
| 105 | 105 | ); // slow, both array_filter and closure |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | // filter out auto-handlers so that a subsequent call to subscribe() |
| 156 | 156 | // works predictably |
| 157 | - $this->handlers = array_filter($this->handlers, function ($v) { |
|
| 157 | + $this->handlers = array_filter($this->handlers, function($v) { |
|
| 158 | 158 | return (strpos($v[0][1], 'on') !== 0); |
| 159 | 159 | }); |
| 160 | 160 | |