Skip to content

Releases: squirrelphp/debug

Add new findOrigin functionality

Choose a tag to compare

@iquito iquito released this 12 Dec 10:49

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

Choose a tag to compare

@iquito iquito released this 11 Dec 11:25

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

Choose a tag to compare

@iquito iquito released this 04 Dec 14:32

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

Choose a tag to compare

@iquito iquito released this 01 Dec 15:03
Add missing type hints to OriginException

v0.5.4: Avoid mb_check_encoding deprecation

Choose a tag to compare

@iquito iquito released this 29 Nov 20:16
Appeared with PHP 8.1 when the value null is passed
to mb_check_encoding by accident.

v0.5.3

Choose a tag to compare

@iquito iquito released this 04 Mar 15:07
Fix unclear types & PHPStan issues

Allow PHP8

Choose a tag to compare

@iquito iquito released this 07 Dec 22:27

Change version constraint and configuration to allow PHP8.

Improve exception origin

Choose a tag to compare

@iquito iquito released this 25 Jul 11:00
  • 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

Choose a tag to compare

@iquito iquito released this 10 Jul 10:36
First official release