8000 chore: improve readability · symfony/symfony@8d00250 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d00250

Browse files
committed
chore: improve readability
1 parent 6ce83e9 commit 8d00250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function isWritable($objectOrArray, $propertyPath)
314314
return false;
315315
}
316316
} else {
317-
if (!(\is_object($zval[self::VALUE]) && $this->isPropertyWritable($zval[self::VALUE], $propertyPath->getElement($i)))) {
317+
if (!\is_object($zval[self::VALUE]) || !$this->isPropertyWritable($zval[self::VALUE], $propertyPath->getElement($i))) {
318318
return false;
319319
}
320320
}

0 commit comments

Comments
 (0)
0