Skip to content

Commit 8af9398

Browse files
committed
$parentSchema will always be set when $name is, so don't check it
1 parent 67659c4 commit 8af9398

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/JsonSchema/Constraints/UndefinedConstraint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ private function shouldApplyDefaultValue($requiredOnly, $schema, $name = null, $
204204
// draft-04 required is set
205205
if (
206206
$name !== null
207-
&& is_object($parentSchema)
208207
&& isset($parentSchema->required)
209208
&& is_array($parentSchema->required)
210209
&& in_array($name, $parentSchema->required)

0 commit comments

Comments
 (0)