Skip to content

Released version 2.0.0

Compare
Choose a tag to compare
@milo milo released this 04 Dec 21:13
· 4 commits to master since this release

The 2.0.0 release is the same as the 1.4.9 but it requires PHP 8.0 at least. There are no logic changes in code, only newer PHP features are used. Mainly strict types declaration, type hints, return types and promoted constructor properties.

One may hit problems with scalar typehints for HTTP return code (used to accept string, now only integer is accepted) and headers value (used to accept integers and nulls, now have to be strings).

  • require PHP >= 8.0
  • declare(strict_types=1);
  • class Sanity replaced by trait Strict
  • type hints, return types, promoted properties