Skip to content

Version 2.1.2 - PHP 7 `Throwable` exception compatibility

Latest
Compare
Choose a tag to compare
@Rican7 Rican7 released this 01 Feb 23:11
· 4 commits to master since this release

Features

  • PHP 7 Throwables will now properly be caught and sent up the exception handling chain.
  • Expanded compatibility with other exception types in some method signatures

Bug fixes

  • Broad exception catch statements will now properly handle PHP 7 Throwable types

Upgrading

Interface Changes

  • The RoutePathCompilationException::createFromRoute() method signature has changed to allow both Exception and Throwable types with dual support for PHP 5 and PHP 7
  • The 4th parameter to the callbacks supported by Klein#onError will now be able to receive Throwable types under PHP 7