File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public static function boolean(callable $filter): void
2424 $ reflection = new ReflectionMethod ($ filter , '__invoke ' );
2525 } else {
2626 throw new InvalidArgumentException (
27- sprintf ('Expected Closure or invokable object, %s given ' , gettype ($ filter ))
27+ sprintf ('Expected Closure or invokable object on callable filter , %s given ' , gettype ($ filter ))
2828 );
2929 }
3030
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function __invoke(int $datum): bool
2626 public function testOnceWithStringFilter (): void
2727 {
2828 $ this ->expectException (InvalidArgumentException::class);
29- $ this ->expectExceptionMessage ('Expected Closure or invokable object, string given ' );
29+ $ this ->expectExceptionMessage ('Expected Closure or invokable object on callable filter , string given ' );
3030
3131 $ data = [1 , 'f ' ];
3232 $ filter = 'is_string ' ;
You can’t perform that action at this time.
0 commit comments