Version 3.0.0 with new features, some changes, some potential BC breaks #236
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.
-
New major version because some major_-ish_ new features in this release, and some potential backwards compatibility breaks, if you use the extension in one way or another, all described below.
New features
typeStringconfig option (Can specify params with a doctype intypeStringconfig option #234)You can now specify dis/allowed parameter values as PHPDoc string like
typeString: 'foo'|'bar'ortypeString: array{}etc. instead of justvalue: scalar*AnyValueparam configs have novaluefield #231 and a follow-up in disallowedAttributes: configure errorIdentifier and errorTip as optional #229 thanks to @francescolaffi)Disallowed attributes will now be also reported when used on/with those.
Changed
Previously, if there was no
messagekey in the disallowed configuration, "because reasons" was added automatically. I thought it was funny back when this was an internal extension only, but maybe it's not anymore. So there's no "because reasons" anymore, and the error message will always end with a full stop., unless it already ends with one, or unless it ends with?or!.Bye typos, at least some of them.
allowExceptParamsInAlloweddescription in docs was flipped around (TheallowExceptParamsInAlloweddescription was flipped around #235)Internal test changes
libsdir intosrc(Merge testlibsdir intosrc#227)ClassWithAttributesAllow(Rename attribute tests and dropClassWithAttributesAllow#230)Created for the 3.0.0 release.
Beta Was this translation helpful? Give feedback.
All reactions