@@ -72,11 +72,11 @@ class PropertyAccessor implements PropertyAccessorInterface
7272 * Should not be used by application code. Use
7373 * {@link PropertyAccess::createPropertyAccessor()} instead.
7474 *
75- * @param int $magicMethods A bitwise combination of the MAGIC_* constants
76- * to specify the allowed magic methods (__get, __set, __call)
77- * or self::DISALLOW_MAGIC_METHODS for none
78- * @param int $throw A bitwise combination of the THROW_* constants
79- * to specify when exceptions should be thrown
75+ * @param int $magicMethodsFlags A bitwise combination of the MAGIC_* constants
76+ * to specify the allowed magic methods (__get, __set, __call)
77+ * or self::DISALLOW_MAGIC_METHODS for none
78+ * @param int $throw A bitwise combination of the THROW_* constants
79+ * to specify when exceptions should be thrown
8080 */
8181 public function __construct (
8282 private int $ magicMethodsFlags = self ::MAGIC_GET | self ::MAGIC_SET ,
@@ -216,7 +216,7 @@ public function isReadable(object|array $objectOrArray, string|PropertyPathInter
216216 ];
217217
218218 // handle stdClass with properties with a dot in the name
219- if ($ objectOrArray instanceof \stdClass && str_contains ($ propertyPath , '. ' ) && property_exists ($ objectOrArray , $ propertyPath )) {
219+ if ($ objectOrArray instanceof \stdClass && str_contains ($ propertyPath , '. ' ) && property_exists ($ objectOrArray , $ propertyPath )) {
220220 $ this ->readProperty ($ zval , $ propertyPath , $ this ->ignoreInvalidProperty );
221221 } else {
222222 $ this ->readPropertiesUntil ($ zval , $ propertyPath , $ propertyPath ->getLength (), $ this ->ignoreInvalidIndices );
@@ -635,7 +635,7 @@ private function isPropertyWritable(object $object, string $property): bool
635635
636636 $ mutatorForArray = $ this ->getWriteInfo ($ object ::class, $ property , []);
637637 if (PropertyWriteInfo::TYPE_PROPERTY === $ mutatorForArray ->getType ()) {
638- return $ mutatorForArray ->getVisibility () === ' public ' ;
638+ return ' public ' === $ mutatorForArray ->getVisibility ();
639639 }
640640
641641 if (PropertyWriteInfo::TYPE_NONE !== $ mutatorForArray ->getType ()) {
0 commit comments