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

Skip to content

Commit 8469e9a

Browse files
committed
chore: improve readability
1 parent 6ce83e9 commit 8469e9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Symfony/Component/PropertyAccess/PropertyAccessor.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,8 @@ public function isWritable($objectOrArray, $propertyPath)
313313
if (!$zval[self::VALUE] instanceof \ArrayAccess && !\is_array($zval[self::VALUE])) {
314314
return false;
315315
}
316-
} else {
317-
if (!(\is_object($zval[self::VALUE]) && $this->isPropertyWritable($zval[self::VALUE], $propertyPath->getElement($i)))) {
318-
return false;
319-
}
316+
} elseif (!\is_object($zval[self::VALUE]) || !$this->isPropertyWritable($zval[self::VALUE], $propertyPath->getElement($i))) {
317+
return false;
320318
}
321319

322320
if (\is_object($zval[self::VALUE])) {

0 commit comments

Comments
 (0)
0