Skip to content

Releases: stubbles/stubbles-values

11.0.1 - Objectify

16 Jan 16:22
v11.0.1
1d95e73

Choose a tag to compare

  • clarified return type object of stubbles\values\ResourceLoader::open()

11.0.0 - Ocean's?

25 Dec 19:40
v11.0.0
4d37184

Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 8.2
  • removed stubbles\values\Secret::substring(), deprecated since 10.0.0

Other changes

  • stubbles\values\pattern()->matches() now throws a more specific stubbles\values\PatternMatchFailed instead of the generic \RuntimeException. However,
    the new exception extends \RuntimeException, so no bc break should come from that.

10.0.0 - Ten forward

26 Dec 09:31
671280e

Choose a tag to compare

BC breaks

  • raised minimum required PHP version to 8.0
  • removed decprecated second parameter of stubbles\values\ResourceLoader::load(), use stubbles\values\ResourceLoader::loadWith() instead
  • stubbles\values\ResourceLoader::load() now throws a stubbles\values\ResourceLoadingFailure when loading the resource fails
  • The following methods of stubbles\values\Parse will now throw a TypeError when they fall back to the default value in case the type of the specified default value doesn't match the expected return type:
    • asInt()
    • asFloat()
    • asList()
    • asMap()
    • asRange()
    • asClass()
  • fixed bug with stubbles\values\Parse::asBool() not returning false when both value and default are null
  • deprecated stubbles\values\Secret::substring(), will be removed with 11.0.0

Other changes

  • stubbles\values\Secret::create() has been amended with the #[\SensitiveParameter] attribute for its parameter to further prevent possibilities for leaks of secrets
  • New default backing for stubbles\values\Secret is ext_sodium

9.2.0 - Only with you

06 Mar 08:57
5fa5341

Choose a tag to compare

  • added stubbles\values\ResourceLoader::loadWith(), deprecated second parameter of stubbles\values\ResourceLoader::load(), will be removed with 10.0.0

9.1.2 - Green path

28 Feb 12:27
95e15b7

Choose a tag to compare

  • fixed path issues under Windows with stubbles\values\Rootpath and stubbles\values\ResourceLoader

9.1.1 - More specific, please

16 Dec 11:06

Choose a tag to compare

  • fixed too wide return type hint of stubbles\values\Properties::section(), returns array<string,string> only

9.1.0 - Hint, hint

10 Dec 14:48

Choose a tag to compare

  • added more phpstan related type hints

9.0.1 - Respect the specs

10 Dec 14:47

Choose a tag to compare

  • fixed stubbles\values\Parse::toBool() now returns false when given value is null according to description

9.0.0 - Ever more strict

29 Oct 13:56

Choose a tag to compare

  • removed stubbles\values\Secret::BACKING_MCRYPT, deprecated since 8.0.0
  • raised minimum required PHP version to 7.3
  • fixed various possible bugs due to incorrect type usage

8.1.0 - Strictly no value

30 Jul 19:23

Choose a tag to compare

  • added stubbles\values\Value::isNull()
  • added stubbles\values\Value::isEmpty()
  • added possibility to enforce strict type check in stubbles\values\Value::isOneOf()
  • added possibility to use a different character as separator for list values in stubbles\values\Parse::toList() and stubbles\values\Parse::asList()
  • added stubbles\values\Rootpath::default()