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
fnmatchwildcard, for example like this:... then there may be one or more classes that you'd like to exclude from all the
*Somethingclasses for some reason. Previously, starting with 2.15.0, you could exclude them by name using theexcludeoption:This release brings a new directive called
excludeWithAttributewhich 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
ThisSomethingclass would be disallowed.excludeWithAttributeis supported for classes and namespaces for now, and supportsfnmatchpatterns.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