Download Latest Version Version 2.1.2 - PHP 7 _Throwable_ exception compatibility.zip (101.8 kB)
Email in envelope

Get an email when there's a new version of Klein

Home / v2.1.2
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2017-02-01 612 Bytes
Version 2.1.2 - PHP 7 _Throwable_ exception compatibility.tar.gz 2017-02-01 66.0 kB
Version 2.1.2 - PHP 7 _Throwable_ exception compatibility.zip 2017-02-01 101.8 kB
Totals: 3 Items   168.3 kB 0

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
Source: README.md, updated 2017-02-01