Skip to content

Commit b7eb3ac

Browse files
committed
fix: validation in methods
Fixed error when validating method names. Now it will throw exception if it is an empty string.
1 parent fe0b9b7 commit b7eb3ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExceptionHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343

4444
$methodNames = array_merge($runBeforeCallback, $runAfterCallback);
4545

46-
if (array_filter($methodNames, fn ($method) => (!is_string($method) || $method = ''))) {
46+
if (array_filter($methodNames, fn ($method) => (!is_string($method) || $method === ''))) {
4747
throw new WrongMethodNameException();
4848
}
4949

0 commit comments

Comments
 (0)