We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659a764 commit fe0b9b7Copy full SHA for fe0b9b7
src/ExceptionHandler.php
@@ -43,7 +43,7 @@ public function __construct(
43
44
$methodNames = array_merge($runBeforeCallback, $runAfterCallback);
45
46
- if (array_filter($methodNames, fn ($method) => !is_string($method))) {
+ if (array_filter($methodNames, fn ($method) => (!is_string($method) || $method = ''))) {
47
throw new WrongMethodNameException();
48
}
49
0 commit comments