Skip to content

Releases: squirrelphp/debug

Add new findOrigin functionality

12 Dec 10:49

Choose a tag to compare

Adds Origin value object which is returned by Debug::findOrigin to be able to determine the origin call without necessarily creating an exception. We refactored the Debug class accordingly.

Refactoring + namespace ignore feature

11 Dec 11:25

Choose a tag to compare

The Debug class was heavily refactored and it is now possible to ignore namespaces when creating an exception. This is also a BC-break, as the arguments for Debug::createException have changed with this new option.

Stable release with documentation

04 Dec 14:32

Choose a tag to compare

This is a mini-library mainly for other libraries, but the limited scope should be stable. We set the minimum PHP version to 8.0 - v0.5.5 can still be used for anything below 8.0.

v0.5.5

01 Dec 15:03

Choose a tag to compare

Add missing type hints to OriginException

v0.5.4: Avoid mb_check_encoding deprecation

29 Nov 20:16

Choose a tag to compare

Appeared with PHP 8.1 when the value null is passed
to mb_check_encoding by accident.

v0.5.3

04 Mar 15:07

Choose a tag to compare

Fix unclear types & PHPStan issues

Allow PHP8

07 Dec 22:27

Choose a tag to compare

Change version constraint and configuration to allow PHP8.

Improve exception origin

25 Jul 11:00

Choose a tag to compare

  • Default file and line of the exception now points to the
    origin instead of where the exception was thrown (which
    never helps, as it is always the same place with our
    Debug class)
  • We preserve the actual location where the exception was
    thrown on the off chance that it might still be needed
    or useful in some circumstances

v0.5

10 Jul 10:36

Choose a tag to compare

First official release