From 246328a32a45a8d692ee865fdf93cce8fe8ce983 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 13 Oct 2026 22:30:31 +0200 Subject: [PATCH] Add README tip to prefer group toggles over specific rules --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 21545107..648d8f12 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ parameters: *Note: If you included the sets manually before, remove those `includes:` lines - PHPStan reports duplicated includes.* +*Tip: Prefer the group toggles above (`true`/`false`) over registering individual rules by class. Groups are the stable public API; specific rules get added or removed based on real-world testing, so a hard-coded rule list can break on upgrade. The exception is configurable rules, which you wire up explicitly on purpose.* +
### Symfony/Laravel container `->get()`/`->make()` return type extensions