Skip to content

Commit a9d30da

Browse files
Merge branch '6.4' into 7.2
* 6.4: - CS fixes
2 parents 192091d + beb9785 commit a9d30da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PropertyAccessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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()) {

Tests/PropertyAccessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ public function testSetValueWithAsymmetricVisibility(string $propertyPath, ?stri
10951095
}
10961096

10971097
/**
1098-
* @return iterable<array{0: string, 1: null|class-string}>
1098+
* @return iterable<array{0: string, 1: class-string|null}>
10991099
*/
11001100
public static function setValueWithAsymmetricVisibilityDataProvider(): iterable
11011101
{

0 commit comments

Comments
 (0)