Skip to content

Commit 6979b17

Browse files
committed
Add missing condition
1 parent 2e59f19 commit 6979b17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ public static function propertySet($value, $property, $data)
3131
{
3232
if (is_object($value)) {
3333
$value->{$property} = $data;
34+
} else {
35+
$value[$property] = $data;
3436
}
35-
36-
$value[$property] = $data;
3737
}
3838

3939

0 commit comments

Comments
 (0)