Skip to content

Releases: parable-php/getset

Parable GetSet 1.0.0

12 Mar 08:33
Compare
Choose a tag to compare

Just a re-release locking the interface in place. First final release!

Parable GetSet 0.3.0

11 Mar 13:27
Compare
Choose a tag to compare
Parable GetSet 0.3.0 Pre-release
Pre-release

Changes

  • Add static analysis using psalm.
  • Exception has been renamed to GetSetException for clarity.
  • getMultiple() has been removed from all collections.
  • When removing a non-existing key, since the end result is reached, no exception will be thrown anymore.

Parable GetSet 0.2.0

20 Jan 19:36
Compare
Choose a tag to compare
Parable GetSet 0.2.0 Pre-release
Pre-release

0.2.0

Changes

  • Dropped support for php7, php8 only from now on.

Parable GetSet 0.1.4

09 Mar 11:01
Compare
Choose a tag to compare
Parable GetSet 0.1.4 Pre-release
Pre-release

0.1.4

Changes

  • Added getMultiple(string ...$keys): array so you can request multiple keys in one go. The default value if not found is always null.
// Example of getMultiple:
[$title, $content] = $postColection->getMultiple('title', 'content');

Parable GetSet 0.1.3

15 Apr 10:14
Compare
Choose a tag to compare
Parable GetSet 0.1.3 Pre-release
Pre-release

0.1.3

Changes

  • get() returns null or a custom default value when a key doesn't exist. remove() throws an exception. getAndRemove() also threw an exception, but the primary goal is to get the value. This behavior has been flipped. Now getAndRemove() will return null/default if the key doesn't exist and not throw anymore.

Parable GetSet 0.1.2

03 Apr 16:07
Compare
Choose a tag to compare
Parable GetSet 0.1.2 Pre-release
Pre-release

No changes. Code style fix.

Parable GetSet 0.1.1

07 Mar 22:49
Compare
Choose a tag to compare
Parable GetSet 0.1.1 Pre-release
Pre-release

0.1.1

Changes

  • Add string type-hinting to $key for get() and getAndRemove(), in line with the rest.
  • Add $default = null parameter to get(), so that the scenarios of 'not set' and 'set but null' can be distinguished between.

Parable GetSet 0.1.0

06 Mar 12:50
Compare
Choose a tag to compare
Parable GetSet 0.1.0 Pre-release
Pre-release

0.1.0

Changes

  • First release.