Skip to content

6.0.0 - Breaking cleanup

Compare
Choose a tag to compare
@mikey179 mikey179 released this 12 Jun 12:57
· 140 commits to main since this release

BC breaks

  • Raised minimum required PHP version to 5.6
  • deprecated stubbles\input\ValueReader::asSecureString(), use stubbles\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(), use stubbles\input\ValueReader::ifMatches() instead, will be removed with 7.0.0
  • deprecated stubbles\input\ValueValidator::satisfiesRegex(), use stubbles\input\ValueValidator::matches() instead, will be removed with 7.0.0
  • removed support for @Request[File] and @Request[Directory]
  • removed stubbles\input\ValueReader::ifIsFile() and stubbles\input\ValueReader::ifIsDirectory()
  • moved stubbles\input\console\ConsoleRequest to stubbles\console\input\ConsoleRequest in stubbles/console
  • moved stubbles\input\console\BaseConsoleRequest to stubbles\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 and JSON_SYNTAX_ERROR