Version 3.0.0 with new features, some changes, some potential BC breaks #236
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
-
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
typeString
config option (Can specify params with a doctype intypeString
config option #234)You can now specify dis/allowed parameter values as PHPDoc string like
typeString: 'foo'|'bar'
ortypeString: array{}
etc. instead of justvalue: scalar
*AnyValue
param configs have novalue
field #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
message
key 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.
allowExceptParamsInAllowed
description in docs was flipped around (TheallowExceptParamsInAllowed
description was flipped around #235)Internal test changes
libs
dir intosrc
(Merge testlibs
dir 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