Skip to content

Commit

Permalink
Deprecate CountOnNullRector as depends on previous context and requir…
Browse files Browse the repository at this point in the history
…e manual adjustment of previous result (#5101)
  • Loading branch information
TomasVotruba committed Oct 1, 2023
1 parent 8adfc7a commit 3eb8e7d
Show file tree
Hide file tree
Showing 55 changed files with 19 additions and 1,415 deletions.
18 changes: 9 additions & 9 deletions config/set/php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
use Rector\Php71\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector;
use Rector\Php71\Rector\BooleanOr\IsIterableRector;
use Rector\Php71\Rector\ClassConst\PublicConstantVisibilityRector;
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
use Rector\Php71\Rector\List_\ListToArrayDestructRector;
use Rector\Php71\Rector\TryCatch\MultiExceptionCatchRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rule(IsIterableRector::class);
$rectorConfig->rule(MultiExceptionCatchRector::class);
$rectorConfig->rule(AssignArrayToStringRector::class);
$rectorConfig->rule(CountOnNullRector::class);
$rectorConfig->rule(RemoveExtraParametersRector::class);
$rectorConfig->rule(BinaryOpBetweenNumberAndStringRector::class);
$rectorConfig->rule(ListToArrayDestructRector::class);
$rectorConfig->rule(PublicConstantVisibilityRector::class);
$rectorConfig->rules([
IsIterableRector::class,
MultiExceptionCatchRector::class,
AssignArrayToStringRector::class,
RemoveExtraParametersRector::class,
BinaryOpBetweenNumberAndStringRector::class,
ListToArrayDestructRector::class,
PublicConstantVisibilityRector::class,
]);
};
41 changes: 0 additions & 41 deletions packages/NodeTypeResolver/TypeAnalyzer/CountableTypeAnalyzer.php

This file was deleted.

4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ parameters:
- '#Doing instanceof PHPStan\\Type\\.* is error\-prone and deprecated(\. Use Type\:\:.*\(\) (or .* )?instead)?#'

# phpstan 1.10.0
- '#Call to deprecated method getDirectClassNames\(\) of class PHPStan\\Type\\TypeUtils.*#'
- '#Parameter 3 should use "PHPStan\\Reflection\\ParameterReflectionWithPhpDocs" type as the only type passed to this method#'

# false positive on enums
Expand Down Expand Up @@ -567,7 +566,10 @@ parameters:
- rules/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorReadonlyClassRector.php
- rules/CodingStyle/Rector/Switch_/BinarySwitchToIfElseRector.php

# deprecated
- '#Fetching class constant class of deprecated class Rector\\TypeDeclaration\\Rector\\Property\\TypedPropertyFromStrictConstructorReadonlyClassRector#'
- '#Class "Rector\\Php71\\Rector\\FuncCall\\CountOnNullRector" is missing @see annotation with test case class reference#'
- '#Register "Rector\\Php71\\Rector\\FuncCall\\CountOnNullRector" service to "php71\.php" config set#'

# dev rule
- '#Class "Rector\\Utils\\Rector\\MoveAbstractRectorToChildrenRector" is missing @see annotation with test case class reference#'
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3eb8e7d

Please sign in to comment.