Skip to content

Commit

Permalink
[CI] Add doctrine rules in set check (#4505)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 13, 2023
1 parent 295a01c commit 398baa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ static function (Node $subNode) {
);
}

private function processContextInUnset(Unset_ $node): void
private function processContextInUnset(Unset_ $unset): void
{
foreach ($node->vars as $var) {
foreach ($unset->vars as $var) {
$var->setAttribute(AttributeKey::IS_UNSET_VAR, true);
}
}
Expand Down
3 changes: 3 additions & 0 deletions utils/Command/MissingInSetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ final class MissingInSetCommand extends Command
__DIR__ . '/../../rules/Php82/Rector' => __DIR__ . '/../../config/set/php82.php',
__DIR__ . '/../../rules/Strict/Rector' => __DIR__ . '/../../config/set/strict-booleans.php',

// doctrine
__DIR__ . '/../../vendor/rector/rector-doctrine/rules/CodeQuality' => __DIR__ . '/../../vendor/rector/rector-doctrine/config/sets/doctrine-code-quality.php',

// phpunit
__DIR__ . '/../../vendor/rector/rector-phpunit/rules/PHPUnit50' => __DIR__ . '/../../vendor/rector/rector-phpunit/config/sets/phpunit50.php',
__DIR__ . '/../../vendor/rector/rector-phpunit/rules/PHPUnit60' => __DIR__ . '/../../vendor/rector/rector-phpunit/config/sets/phpunit60.php',
Expand Down

0 comments on commit 398baa2

Please sign in to comment.