Skip to content

Commit ef3054c

Browse files
Nyholmnicolas-grekas
authored andcommitted
Fixed bugs found by psalm
1 parent 3a3ea59 commit ef3054c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Internal/Exporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function prepare($values, $objectsPool, &$refsPool, &$objectsCount
8282
}
8383

8484
if (!\is_array($properties = $value->__serialize())) {
85-
throw new \Typerror($class.'::__serialize() must return an array');
85+
throw new \TypeError($class.'::__serialize() must return an array');
8686
}
8787

8888
goto prepare_value;

0 commit comments

Comments
 (0)