Skip to content

Commit 0d5d40a

Browse files
committed
Fixed build
1 parent 5755334 commit 0d5d40a

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

tests/PHPStan/Rules/DeadCode/UnusedPrivatePropertyRuleTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use PHPStan\Rules\Properties\ReadWritePropertiesExtension;
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
10-
use UnusedPrivateProperty\TextExtension;
1110
use const PHP_VERSION_ID;
1211

1312
/**
@@ -30,7 +29,7 @@ protected function getRule(): Rule
3029

3130
public function isAlwaysRead(PropertyReflection $property, string $propertyName): bool
3231
{
33-
return $property->getDeclaringClass()->getName() === TextExtension::class
32+
return $property->getDeclaringClass()->getName() === 'UnusedPrivateProperty\\TextExtension'
3433
&& in_array($propertyName, [
3534
'read',
3635
'used',
@@ -39,7 +38,7 @@ public function isAlwaysRead(PropertyReflection $property, string $propertyName)
3938

4039
public function isAlwaysWritten(PropertyReflection $property, string $propertyName): bool
4140
{
42-
return $property->getDeclaringClass()->getName() === TextExtension::class
41+
return $property->getDeclaringClass()->getName() === 'UnusedPrivateProperty\\TextExtension'
4342
&& in_array($propertyName, [
4443
'written',
4544
'used',

tests/PHPStan/Rules/Properties/UninitializedPropertyRuleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PHPStan\Reflection\PropertyReflection;
66
use PHPStan\Rules\Rule;
77
use PHPStan\Testing\RuleTestCase;
8-
use UninitializedProperty\TestExtension;
98
use const PHP_VERSION_ID;
109

1110
/**
@@ -32,7 +31,7 @@ public function isAlwaysWritten(PropertyReflection $property, string $propertyNa
3231

3332
public function isInitialized(PropertyReflection $property, string $propertyName): bool
3433
{
35-
return $property->getDeclaringClass()->getName() === TestExtension::class && $propertyName === 'inited';
34+
return $property->getDeclaringClass()->getName() === 'UninitializedProperty\\TestExtension' && $propertyName === 'inited';
3635
}
3736

3837
},

0 commit comments

Comments
 (0)