Skip to content

Commit 16bb9e1

Browse files
Merge branch '6.4' into 7.2
* 6.4: - CS fixes
2 parents 3e35e45 + 3244faa commit 16bb9e1

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Extractor/ReflectionExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ private function isAllowedProperty(string $class, string $property, bool $writeA
722722
return (bool) ($this->propertyReflectionFlags & \ReflectionProperty::IS_PRIVATE);
723723
}
724724

725-
if (\PHP_VERSION_ID >= 80400 &&$reflectionProperty->isVirtual() && !$reflectionProperty->hasHook(\PropertyHookType::Set)) {
725+
if (\PHP_VERSION_ID >= 80400 && $reflectionProperty->isVirtual() && !$reflectionProperty->hasHook(\PropertyHookType::Set)) {
726726
return false;
727727
}
728728
}
@@ -976,7 +976,7 @@ private function getWriteVisiblityForProperty(\ReflectionProperty $reflectionPro
976976

977977
if ($reflectionProperty->isProtectedSet()) {
978978
return PropertyWriteInfo::VISIBILITY_PROTECTED;
979-
}
979+
}
980980
}
981981

982982
if ($reflectionProperty->isPrivate()) {

PropertyDocBlockExtractorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ interface PropertyDocBlockExtractorInterface
2828
* by the following priority:
2929
* - constructor promoted argument
3030
* - the class property
31-
* - a mutator method for that property
31+
* - a mutator method for that property.
3232
*
3333
* If no doc block is found, it will return null.
3434
*/

Tests/Extractor/SerializerExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ public function testGetPropertiesWithAnyGroup()
5252

5353
public function testGetPropertiesWithNonExistentClassReturnsNull()
5454
{
55-
$this->assertSame(null, $this->extractor->getProperties('NonExistent'));
55+
$this->assertNull($this->extractor->getProperties('NonExistent'));
5656
}
5757
}

Tests/PropertyInfoCacheExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function testIsInitializable()
9090
*/
9191
public function testNestedExtractorWithoutGetTypeImplementation(string $property, ?Type $expectedType)
9292
{
93-
$propertyInfoCacheExtractor = new PropertyInfoCacheExtractor(new class() implements PropertyInfoExtractorInterface {
93+
$propertyInfoCacheExtractor = new PropertyInfoCacheExtractor(new class implements PropertyInfoExtractorInterface {
9494
private PropertyTypeExtractorInterface $propertyTypeExtractor;
9595

9696
public function __construct()

Tests/PropertyInfoExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PropertyInfoExtractorTest extends AbstractPropertyInfoExtractorTest
3030
*/
3131
public function testNestedExtractorWithoutGetTypeImplementation(string $property, ?Type $expectedType)
3232
{
33-
$propertyInfoExtractor = new PropertyInfoExtractor([], [new class() implements PropertyTypeExtractorInterface {
33+
$propertyInfoExtractor = new PropertyInfoExtractor([], [new class implements PropertyTypeExtractorInterface {
3434
private PropertyTypeExtractorInterface $propertyTypeExtractor;
3535

3636
public function __construct()

Util/PhpStanTypeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function extractTypes(TypeNode $node, NameScope $nameScope): array
125125
return [$mainType];
126126
}
127127

128-
$collection = $mainType->isCollection() || \is_a($mainType->getClassName(), \Traversable::class, true) || \is_a($mainType->getClassName(), \ArrayAccess::class, true);
128+
$collection = $mainType->isCollection() || is_a($mainType->getClassName(), \Traversable::class, true) || is_a($mainType->getClassName(), \ArrayAccess::class, true);
129129

130130
// it's safer to fall back to other extractors if the generic type is too abstract
131131
if (!$collection && !class_exists($mainType->getClassName()) && !interface_exists($mainType->getClassName(), false)) {

0 commit comments

Comments
 (0)