Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"rector/swiss-knife": "^2.4.1",
"shipmonk/composer-dependency-analyser": "^1.8",
"symplify/easy-coding-standard": "^13.2.13",
"symplify/phpstan-rules": "^14.12.3",
"symplify/phpstan-rules": "^14.13",
"tomasvotruba/class-leak": "^2.1",
"tomasvotruba/fast-unit": "^0.1",
"tomasvotruba/type-coverage": "^2.3.6",
Expand Down
7 changes: 6 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ includes:
- vendor/symplify/phpstan-rules/config/rector-rules.neon

rules:
- Rector\Utils\PHPStan\Rule\CheaperGuardFirstRule
- Rector\Utils\PHPStan\Rule\RegisterRelatedPolyfillRectorRule

parameters:
Expand Down Expand Up @@ -71,6 +70,12 @@ parameters:
message: '#deprecated (class|interface) Rector\\(Set|Bridge)\\#'
path: src/Configuration/RectorConfigBuilder.php

# EARLY_RETURN set is deprecated (empty, merged into code-quality), still mapped internally until removed
-
identifier: classConstant.deprecated
message: '#EARLY_RETURN of class Rector\\Set\\ValueObject\\SetList#'
path: src/Configuration/RectorConfigBuilder.php

# the deprecated github/gitlab output formatters are still tested until removed in next minor version
-
identifier: new.deprecatedClass
Expand Down
3 changes: 3 additions & 0 deletions src/Set/ValueObject/SetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ final class SetList

public const string TYPE_DECLARATION_DOCBLOCKS = __DIR__ . '/../../../config/set/type-declaration-docblocks.php';

/**
* @deprecated Use code-quality set instead, as all early return rules were moved there
*/
public const string EARLY_RETURN = __DIR__ . '/../../../config/set/early-return.php';

public const string INSTANCEOF = __DIR__ . '/../../../config/set/instanceof.php';
Expand Down
274 changes: 0 additions & 274 deletions utils/phpstan/src/Rule/CheaperGuardFirstRule.php

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading