Releases: stubbles/stubbles-input
Releases · stubbles/stubbles-input
9.0.0 - Future series of cleanups
BC breaks
- raised minimum required PHP version to 8.2
- removed classes and methods deprecated since 7.0.0
stubbles\input\Param
stubbles\input\ValueReader::forParam()
stubbles\input\broker\param\ParamBroker::procureParam()
stubbles\input\broker\param\CustomDatespanParamBroker::procureParam()
stubbles\input\broker\param\ultipleSourceParamBroker::procureParam()
stubbles\input\filter\range\StringLength::truncate()
now throws an\ValueError
instead of an\InvalidArgumentException
8.0.2 - Tidy up
- added more phpstan related type hints
- fixed minor bugs due to type offenses
8.0.1. - Not that specific, please
- Fixed problem that setting
stubbles.locale
to something likede_DE
didn't fall back to using messages withde_*
8.0.0 - One up
BC breaks
- raised minimum required PHP version to 7.3
stubbles\input\broker\RequestBroker::procure()
doesn't return the given and procured object instance any morestubbles\input\filter\range\StringLength
doesn't support instances ofstubbles\values\Secret
any morestubbles\input\ValueReader::asSecret()
doesn't take astubbles\input\filter\range\StringLength
any more butstubbles\input\filter\range\SecretMinLength
@Request[Secret]
doesn't support themaxLength
attribute any more@Request[OneOf]
will throw an exception when callback specified withallowedSource
doesn't exist or isn't callable
7.0.0 - Going forward
BC breaks
- raised minimum required PHP version to 7.0.0
- introduced scalar type hints and strict type checking
- renamed
stubbles\input\AbstractRequest
tostubbles\input\ParamRequest
- removed methods deprecated in 6.0.0
stubbles\input\ValueReader::asSecureString()
, usestubbles\input\ValueReader::asSecret()
insteadstubbles\input\ValueReader::ifSatisfiesRegex()
, usestubbles\input\ValueReader::ifMatches()
insteadstubbles\input\ValueValidator::satisfiesRegex()
, usestubbles\input\ValueValidator::matches()
instead
- removed support for
@Request[SecureString]
, use@Request[Secret]
instead, was deprecates in 6.0.0 stubbles\input\Filter
is now an abstract class, not an interfacestubbles\input\Filter::apply()
now acceptsstubbles\values\Value
instead ofstubbles\input\Param
and must return anarray
Other changes
- fixed bug that
stubbles\input\ValueReader::asSecret()
removed some characters - added optional parameter
$checkdnsrr
forstubbles\input\ValueReader::asExistingHttpUri()
to influence which function is used for dns checks
6.0.0 - Breaking cleanup
BC breaks
- Raised minimum required PHP version to 5.6
- deprecated
stubbles\input\ValueReader::asSecureString()
, usestubbles\input\ValueReader::asSecret()
instead, will be removed with 7.0.0 - deprecated
@Request[SecureString]
, use@Request[Secret]
instead, will be removed with 7.0.0 - removed
stubbles\input\ValueReader::asEnum()
- deprecated
stubbles\input\ValueReader::ifSatisfiesRegex()
, usestubbles\input\ValueReader::ifMatches()
instead, will be removed with 7.0.0 - deprecated
stubbles\input\ValueValidator::satisfiesRegex()
, usestubbles\input\ValueValidator::matches()
instead, will be removed with 7.0.0 - removed support for
@Request[File]
and@Request[Directory]
- removed
stubbles\input\ValueReader::ifIsFile()
andstubbles\input\ValueReader::ifIsDirectory()
- moved
stubbles\input\console\ConsoleRequest
tostubbles\console\input\ConsoleRequest
in stubbles/console - moved
stubbles\input\console\BaseConsoleRequest
tostubbles\console\input\BaseConsoleRequest
in stubbles/console
Other changes
stubbles\input\ValueReader::asJson()
now allows to specify the allowed maximum length of the JSON input- added proper error message texts for JSON filter errors
JSON_INPUT_TOO_BIG
,JSON_INVALID
andJSON_SYNTAX_ERROR
5.2.1 - The objects you keep
stubbles\input\broker\RequestBroker::procure()
now returns the procured object
5.2.0 - May the source be allowed
- allow retrieval from code source for @request[OneOf] with new attribute
allowedSource
5.1.0 - I need more details
- added
stubbles\input\errors\ParamError::details()
5.0.0 - Finally divorced
- removed
stubbles\input\web
, deprecated since 4.4.0 - upgrade stubbles/core to 6.0
- added
stubbles\input\filter\EnumFilter
- added
stubbles\input\ValueReader::asEnum()
- added
stubbles\input\broker\param\EnumParamBroker