Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Fix expected missing return types
  [VarDumper] Fix tests
  • Loading branch information
nicolas-grekas committed Aug 30, 2024
2 parents 6a533eb + 866f6cd commit 6c709f9
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 @@ -98,7 +98,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 6c709f9

Please sign in to comment.