Skip to content

Commit 9348929

Browse files
author
Jérôme Deuchnord
committed
Fix type validation failing for "any" and false-y type wording
1 parent 4c74da5 commit 9348929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonSchema/Constraints/TypeConstraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function implodeWith(array $elements, $delimiter = ', ', $listEnd = fa
151151
*/
152152
protected function validateTypeNameWording($type)
153153
{
154-
if (!isset(self::$wording[$type])) {
154+
if (!array_key_exists($type, self::$wording)) {
155155
throw new StandardUnexpectedValueException(
156156
sprintf(
157157
'No wording for %s available, expected wordings are: [%s]',

0 commit comments

Comments
 (0)