New definedIn & exclude directives to limit selection #201
Closed
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.
-
Can exclude some attributes, calls, namespaces (#197, #199)
Handy when you disallow items with wildcards but there's this one thing you'd like to leave out.
exclude
can be a string or an array/list of strings. Currently works for attributes, function & method calls, namespaces.Add
definedIn?:string|list<string>
config option (#198, #200)To further specify/limit files where the function or method should be defined to be disallowed.
definedIn
can also be string or a list/array of strings. Currently works for function and method calls only. You may also need to setfilesRootDir
, see the README.Internal changes
str_starts_with()
(Require symfony/polyfill-php80 for dev/tests #196)This discussion was created from the release New definedIn & exclude directives to limit selection.
Beta Was this translation helpful? Give feedback.
All reactions