Skip to content

4.0.0

Compare
Choose a tag to compare
@asgrim asgrim released this 29 Dec 10:52
· 801 commits to 7.5.x since this release
d1b2d58

What's changed in version 4.x

BC breaks listed

  • Strict type hints have been added throughout. This may break some type assumptions made in earlier versions.
  • CheckUpdateCommand, ConvertCommand, LogfileCommand, ParserCommand, UpdateCommand removed setCache methods
    so that caches must now be constructor-injected
  • Many classes are now final - use composition instead of inheritance
  • PropertyFormatter now assumes any non-truthy values are false
  • checkUpdate method now throws an exception if we could not determine the "remote" version, or if there is no
    version in cache already.
  • log method was removed

Changes

  • for caching the Doctrine Cache package is used
    • Any other Cache compatible with PSR-16 could be used
  • instead of the debug flag for the CLI commands the verbose flag has to be used

** For full migration details, please see https://github.com/browscap/browscap-php/blob/4.0.0/README.md **

Total issues resolved: 24