Skip to content

Commit 46517c3

Browse files
committed
fix type of NullConstraint
1 parent 717c903 commit 46517c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Constraints/NullConstraint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use namespace Slack\Hack\JsonSchema;
66

77
class NullConstraint {
8-
public static function check(mixed $input, string $pointer): mixed {
9-
if ($input === null) {
8+
public static function check(mixed $input, string $pointer): null {
9+
if ($input is null) {
1010
return $input;
1111
} else {
1212
$error = shape(

0 commit comments

Comments
 (0)