diff --git a/README.md b/README.md index 9049aa9a..512cb83d 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,6 @@ Once you have most rules applied, it's best practice to include whole sets: includes: - vendor/symplify/phpstan-rules/config/code-complexity-rules.neon - vendor/symplify/phpstan-rules/config/configurable-rules.neon - - vendor/symplify/phpstan-rules/config/naming-rules.neon - vendor/symplify/phpstan-rules/config/static-rules.neon # project specific @@ -49,6 +48,16 @@ includes:
+The naming rules (class/constant naming and namespace rules, e.g. interface must live in a "Contract" namespace) load automatically and are **enabled by default**. Turn them off with the `naming` parameter: + +```yaml +parameters: + symplify: + naming: false +``` + +
+ ### Symfony/Laravel container `->get()`/`->make()` return type extensions Want sharper type inference? The return type extensions are **disabled by default** — enable the ones that fit your stack: @@ -332,6 +341,14 @@ rules: - Symplify\PHPStanRules\Rules\Explicit\ExplicitClassPrefixSuffixRule ``` +Reported under these identifiers: + +```yaml +- identifier: symplify.explicitAbstractPrefixName +- identifier: symplify.explicitInterfaceSuffixName +- identifier: symplify.explicitTraitSuffixName +``` + ```php