Skip to content

Commit

Permalink
Fix expected missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 30, 2024
1 parent d60a85b commit 866f6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PropertyAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getValue(object|array $objectOrArray, string|PropertyPathInterfa
self::VALUE => $objectOrArray,
];

if (\is_object($objectOrArray) && false === strpbrk((string) $propertyPath, '.[?') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {
if (\is_object($objectOrArray) && (false === strpbrk((string) $propertyPath, '.[?') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {
return $this->readProperty($zval, $propertyPath, $this->ignoreInvalidProperty)[self::VALUE];
}

Expand Down

0 comments on commit 866f6cd

Please sign in to comment.