Skip to content

Commit

Permalink
Rector preset (#314)
Browse files Browse the repository at this point in the history
* Enable rectorPreset set

* Enable rectorPreset set
  • Loading branch information
samsonasik authored May 30, 2024
1 parent 364e273 commit 6eb8de8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
codingStyle: true,
naming: true,
typeDeclarations: true,
privatization: true
privatization: true,
rectorPreset: true
)
->withConfiguredRule(StringClassNameToClassConstantRector::class, [
'Doctrine\*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function run(): iterable
}

/**
* @param ClassMethod|MethodCall|Node\Stmt\Foreach_ $node
* @param ClassMethod|MethodCall|Foreach_ $node
*/
public function refactor(Node $node): MethodCall|ClassMethod|Foreach_|null
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?php

declare(strict_types=1);

namespace Rector\Doctrine\Tests\Set\DoctrineCOLLECTION22Set;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;

class DoctrineCOLLECTION22SetTest extends AbstractRectorTestCase
final class DoctrineCOLLECTION22SetTest extends AbstractRectorTestCase
{
public function provideConfigFilePath(): string
{
Expand Down

0 comments on commit 6eb8de8

Please sign in to comment.