Skip to content

1.0.4

Compare
Choose a tag to compare
@dbrumann dbrumann released this 14 Jul 23:31
8ed1cd3

This release provides minor improvements around type safety and some cleanups.

Changelog

  • Newer PHP versions were added to the build pipeline to make sure no regressions are introduced when upgrading to PHP 7.2 or 7.3
  • Adds tests
  • Minor changes to unserialize() that should not alter the current behavior:
    • Some if-conditions were simplified for better readability
    • When checking for in_array() the third argument (strict type check) was added
    • Instead of using list() inside the anonymous function array_shift() is used. This will make sure the behavior will stay consistent between major versions (not that this matters as with PHP 7 the global unserialize() will be used anyway)
    • type coercion is applied to the extracted variables inside the anonymous function, mainly to clarify $objectSize is an integer before adding +1 to it
  • A .gitattributes file was added to ensure tests are stripped from the final release to make the resulting dist file is a teeny tiny bit smaller
  • A composer.lock was added and removed from .gitignore to adhere to composer best practices
  • Cleanups in LICENSE, README and tests