classPattern directive, allowInInstanceOf wildcards, param conditions in more places #419
spaze
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New
classPatternparam directive matches a parameter's declared class name against a wildcard pattern usingfnmatch()(AddclassPatternparam config directive for wildcard class name matching #412, docs example Add example combiningdisallowInInstanceOfwildcard withclassPattern#417)allowInInstanceOf/disallowInInstanceOfnow supportfnmatch()wildcard patterns (Addfnmatch()wildcard support toallowInInstanceOfand friends #399, docs example Add example combiningdisallowInInstanceOfwildcard withclassPattern#417) and param conditions (Add param conditions support toallowInInstanceOfanddisallowInInstanceOf#401)allowExceptIn/allowExceptInMethodsand theirdisallowIn*aliases (Support param conditions inallowExceptInandallowExceptInMethods#414)allowExceptParamsAnywhereanddisallowParamsAnywherealiases forallowExceptParams/disallowParamsto match other*Anywheredirectives (AddallowExceptParamsAnywhereanddisallowParamsAnywherealiases #410)Bugfixes
typeString: descriptive exception on parse failure (Throw a descriptive exception whentypeStringcannot be parsed #407)typeStringnow throws an exception, and'0'(a string consisting of0) is now a validtypeString(Treat typeString '0' as valid, throw on emptytypeString#409)func(...)) with param conditions is now handled correctly (First-class callables with parameter conditions #418)allowExceptInFunctions/allowExceptInMethodswith multiple entries only checked the first one, not anymore (Fix allowExceptInFunctions/Methods with multiple entries — only first entry was enforced #405)Internal changes
CLAUDE.md(Add CLAUDE.md #403,export-ignored in Export-ignoreCLAUDE.mdandphpstan-dead-code-detector.php#413)export-ignorephpstan-dead-code-detector.phpfrom release archives (Export-ignoreCLAUDE.mdandphpstan-dead-code-detector.php#413)This discussion was created from the release classPattern directive, allowInInstanceOf wildcards, param conditions in more places.
Beta Was this translation helpful? Give feedback.
All reactions