diff --git a/config/services/services.neon b/config/services/services.neon index bd6438d7..3a851a93 100644 --- a/config/services/services.neon +++ b/config/services/services.neon @@ -12,7 +12,6 @@ services: - Symplify\PHPStanRules\Composer\Psr4PathValidator - Symplify\PHPStanRules\Formatter\RequiredWithMessageFormatter - Symplify\PHPStanRules\Location\DirectoryChecker - - Symplify\PHPStanRules\Naming\BoolishNameAnalyser - Symplify\PHPStanRules\Naming\ClassToSuffixResolver - Symplify\PHPStanRules\NodeAnalyzer\AttributeFinder - Symplify\PHPStanRules\NodeAnalyzer\EnumAnalyzer diff --git a/docs/rules_overview.md b/docs/rules_overview.md index 0d3b8447..4de59332 100644 --- a/docs/rules_overview.md +++ b/docs/rules_overview.md @@ -1,4 +1,4 @@ -# 48 Rules Overview +# 46 Rules Overview ## AnnotateRegexClassConstWithRegexLinkRule @@ -31,40 +31,6 @@ class SomeClass
-## BoolishClassMethodPrefixRule - -Method `"%s()"` returns bool type, so the name should start with is/has/was... - -- class: [`Symplify\PHPStanRules\Rules\BoolishClassMethodPrefixRule`](../src/Rules/BoolishClassMethodPrefixRule.php) - -```php -class SomeClass -{ - public function old(): bool - { - return $this->age > 100; - } -} -``` - -:x: - -
- -```php -class SomeClass -{ - public function isOld(): bool - { - return $this->age > 100; - } -} -``` - -:+1: - -
- ## CheckClassNamespaceFollowPsr4Rule Class like namespace "%s" does not follow PSR-4 configuration in `composer.json` @@ -616,44 +582,6 @@ interface RunnableInterface
-## NoAbstractRule - -Instead of abstract class, use specific service with composition - -- class: [`Symplify\PHPStanRules\Rules\Complexity\NoAbstractRule`](../src/Rules/Complexity/NoAbstractRule.php) - -```php -final class NormalHelper extends AbstractHelper -{ -} - -abstract class AbstractHelper -{ -} -``` - -:x: - -
- -```php -final class NormalHelper -{ - public function __construct( - private SpecificHelper $specificHelper - ) { - } -} - -final class SpecificHelper -{ -} -``` - -:+1: - -
- ## NoArrayAccessOnObjectRule Use explicit methods over array access on object diff --git a/src/Naming/BoolishNameAnalyser.php b/src/Naming/BoolishNameAnalyser.php deleted file mode 100644 index fa0df357..00000000 --- a/src/Naming/BoolishNameAnalyser.php +++ /dev/null @@ -1,49 +0,0 @@ -