From 866f6cd84f2094cbc6f66ce9752faf749916e2a9 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 30 Aug 2024 18:06:13 +0200 Subject: [PATCH] Fix expected missing return types --- PropertyAccessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PropertyAccessor.php b/PropertyAccessor.php index 2a1ed4b..6d1ebaf 100644 --- a/PropertyAccessor.php +++ b/PropertyAccessor.php @@ -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]; }