Skip to content

1.16.0

Compare
Choose a tag to compare
@lukeify lukeify released this 03 Apr 04:53
· 8 commits to master since this release

What's new

  • Introduces Bluewing\Enumerations\InstantiatesFromKey trait to allow a PHP 8 enumeration to be created from a key present on the enumeration.
  • Introduces Bluewing\Enumerations\MapsToArrays trait to allow PHP 8 enumerations to be converted to arrays containing the keys of the enumeration, the backed values of the enumeration, or an associative array of keys to backed values.
  • Introduces Bluewing\Testing\InteractsWithDatabaseJson trait supporting JSON columns in a PostgreSQL database to have their keys and values asserted via the assertDatabaseJson, similar to the already present assertDatabaseHas method.

What's changed

  • Readability and type improvements to expandable functionality. Introduces the Bluewing\Expandables\BaseExpandable abstract class to support clearer calculation of what expansion query string parameters are valid.

What's fixed

  • Fixed a bug in Bluewing\Rules\IsCoordinateComponent where coordinate values that were integers would be improperly validated (even if provided as a float with suffixed zeroes).