Skip to content

Commit 1a41a2b

Browse files
keradusnicolas-grekas
authored andcommitted
chore: PHP CS Fixer fixes
1 parent 6a36956 commit 1a41a2b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

PropertyAccessor.php

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

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)