Skip to content

Commit b16a6d0

Browse files
committed
reapply
1 parent 97a26e1 commit b16a6d0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
return RectorConfig::configure()
99
->withPhpSets()
10-
->withPreparedSets(codeQuality: true, deadCode: true, codingStyle: true, typeDeclarations: true, naming: true, privatization: true, earlyReturn: true, phpunitCodeQuality: true)
10+
->withPreparedSets(deadCode: true, codeQuality: true, codingStyle: true, typeDeclarations: true, privatization: true, naming: true, earlyReturn: true, phpunitCodeQuality: true)
1111
->withPaths([__DIR__ . '/config', __DIR__ . '/src', __DIR__ . '/tests'])
1212
->withRootFiles()
1313
->withImportNames()

src/Rules/Enum/RequireUniqueEnumConstantRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ private function filterDuplicatedValues(array $values): array
9090
private function resolveClassConstantValues(ClassLike $classLike, Scope $scope): array
9191
{
9292
$constantValues = [];
93-
foreach ($classLike->getConstants() as $classConst) {
94-
foreach ($classConst->consts as $const) {
93+
foreach ($classLike->getConstants() as $constant) {
94+
foreach ($constant->consts as $const) {
9595
$constValueType = $scope->getType($const->value);
9696
if (! $constValueType instanceof ConstantStringType) {
9797
continue;

tests/Issues/InstantiateMaximumIgnoredErrorCountRuleTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55
namespace Symplify\PHPStanRules\Tests\Issues;
66

7+
use Symplify\PHPStanRules\Rules\MaximumIgnoredErrorCountRule;
78
use PHPUnit\Framework\TestCase;
89

910
final class InstantiateMaximumIgnoredErrorCountRuleTest extends TestCase
1011
{
1112
public function testInstantiation(): void
1213
{
13-
$rule = new \Symplify\PHPStanRules\Rules\MaximumIgnoredErrorCountRule(10);
14-
$this->assertInstanceOf(\Symplify\PHPStanRules\Rules\MaximumIgnoredErrorCountRule::class, $rule);
14+
$maximumIgnoredErrorCountRule = new MaximumIgnoredErrorCountRule(10);
15+
$this->assertInstanceOf(MaximumIgnoredErrorCountRule::class, $maximumIgnoredErrorCountRule);
1516
}
1617
}

0 commit comments

Comments
 (0)