Skip to content

Commit 0df50cf

Browse files
committed
[DX] Fix message: no return means return mixed
1 parent ce1fb91 commit 0df50cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assert/Filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function boolean(callable $filter): void
5050
}
5151

5252
if (! $returnType instanceof ReflectionNamedType) {
53-
throw new InvalidArgumentException('Expected a bool return type on callable filter, null given');
53+
throw new InvalidArgumentException('Expected a bool return type on callable filter, mixed given');
5454
}
5555

5656
$returnTypeName = $returnType->getName();

0 commit comments

Comments
 (0)