Can exclude disallowed classes based on attribute #322
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.
-
Allow excluding disallowed classes based on attribute (#319, thanks @morrislaptop)
If you disallow multiple classes or namespaces using an
fnmatch
wildcard, for example like this:... then there may be one or more classes that you'd like to exclude from all the
*Something
classes for some reason. Previously, starting with 2.15.0, you could exclude them by name using theexclude
option:This release brings a new directive called
excludeWithAttribute
which you can also use to exclude items from the original set, but based on whether they have the specified attribute:Then if you have two classes like this:
then only
ThisSomething
class would be disallowed.excludeWithAttribute
is supported for classes and namespaces for now, and supportsfnmatch
patterns.Internal changes
zend.assertions=1
(Make tests green when running withzend.assertions=1
#321)This discussion was created from the release Can exclude disallowed classes based on attribute.
Beta Was this translation helpful? Give feedback.
All reactions