Skip to content

Releases: LoggerEssentials/ErrorHandling

Respect Suppressed Error Levels

Choose a tag to compare

@rkrx rkrx released this 20 Aug 10:27

Fixed

  • Respect the active error_reporting() mask when converting PHP errors into exceptions.
  • Prevent errors suppressed with @ from being converted into ErrorException instances on PHP 8+.
  • Preserve exception conversion for visible error levels included in the configured bitmask.

Tests

  • Added regression coverage for suppressed error levels.
  • Updated existing error-handler tests for the corrected behavior.

Fixed PHP 8.3+ Deprecation: Modernize Assertion Handler

Choose a tag to compare

@rkrx rkrx released this 23 Nov 21:28

Modernizes assertion handling to eliminate deprecation warnings in PHP 8.3+ and newer versions. The deprecated assert_options function and its constants ASSERT_ACTIVE, ASSERT_WARNING, and ASSERT_CALLBACK have been replaced with a modern exception-based approach using set_exception_handler to catch AssertionError exceptions. Failed assertions are now logged through the registered PSR-3 logger while maintaining full backward compatibility with existing code. Tests have been updated to verify the new implementation in isolated processes.

Finalized 1.0

Choose a tag to compare

@rkrx rkrx released this 22 Nov 20:13
  • Updated codebase for PHP 8 compatibility, including stricter type definitions and nullable return types in error handlers.
  • Replaced Exception type hints with Throwable to correctly capture all errors and exceptions in modern PHP environments.
  • Refactored error bitmask handling to remove deprecated syntax and ensure correct error suppression logic.
  • Improved fatal error detection logic in shutdown handlers.
  • Added PHPStan and Rector configuration for static analysis and automated code quality improvements.
  • Updated composer.json requirements to PHP 8.0+.

Min php version is now at 7.0 + better exception handling

Choose a tag to compare

@rkrx rkrx released this 07 Aug 21:41
- Better exception-handling

- Raised minimum php version to 7.0

Fixed an error

Fixed an error Pre-release
Pre-release

Choose a tag to compare

@rkrx rkrx released this 02 Jan 10:47
39fd11f

Fixed: Trying to access array offset on value of type null when script has run successfully without any error in PHP7.4

Removed dependency to logger/logger

Pre-release

Choose a tag to compare

@rkrx rkrx released this 26 Jun 15:34
0.1.9.2

- Removed dependency to `logger/logger`

0.1.9.1

0.1.9.1 Pre-release
Pre-release

Choose a tag to compare

@rkrx rkrx released this 19 May 20:01
- Better stack trace printing

0.1.9

0.1.9 Pre-release
Pre-release

Choose a tag to compare

@rkrx rkrx released this 19 May 18:39
  • Better stack trace printing

0.1.8

0.1.8 Pre-release
Pre-release

Choose a tag to compare

@rkrx rkrx released this 13 Oct 09:30
- PHP7 compatibility fix: What once was an E_STRICT is now an E_WARNING

0.1.7

0.1.7 Pre-release
Pre-release

Choose a tag to compare

@rkrx rkrx released this 13 Oct 09:15
- PHP7 compatibility fix: Exception handlers registered with set_exce…