Skip to content

Releases: emgiezet/errbit-php

3.0.3

14 Jan 08:25
18226e8

Choose a tag to compare

What's Changed

Full Changelog: 3.0.2...3.0.3

3.0.2

13 Jan 11:22
723aaf0

Choose a tag to compare

What's Changed

Full Changelog: 3.0.1...3.0.2

3.0.1

12 Jan 14:07
656ea94

Choose a tag to compare

What's Changed

Full Changelog: 2.0.2...3.0.1

Added php 8.3, 8.4 support and removed php 8.0 support

12 Jan 14:05
f9a4815

Choose a tag to compare

Changelog

[3.0.0] - 2026-01-12

Breaking Changes

  • Dropped PHP 8.0 and 8.1 support - Minimum PHP version is now 8.2, recommended 8.3
  • Removed ErrorInterface - Use \Throwable type hints instead
  • Changed WriterInterface::write() signature - Now accepts \Throwable instead of ErrorInterface
  • Updated error class constructors - Notice, Warning, Error, Fatal, and BaseError now use named parameters with updated signatures

Note: Tests on PHP 8.0 may fail due to deprecated features and type system changes. This version is not supported.

Added

  • Full PHP 8.2 and 8.3 compatibility
  • Comprehensive test coverage for ErrorHandlers class
  • New tests for Notice exception class (XML generation, filtering, formatting)
  • New tests for XmlBuilder utility class
  • New tests for SocketWriter class
  • Extended tests for GuzzleWriter class
  • Extended tests for Errbit main class (configuration, callbacks, user agent filtering)

Fixed

  • Fixed ErrorHandlers::onException() method to properly convert exceptions using Converter
  • Fixed type declarations throughout the codebase for PHP 8.3 compatibility

Changed

  • Migrated CI from Travis CI to GitHub Actions
  • Updated PHPUnit configuration for modern PHP versions
  • Improved test coverage from ~73% to ~88%

Removed

  • src/Errbit/Errors/ErrorInterface.php - No longer needed, use \Throwable instead

Migration Guide

If upgrading from v2.x:

  1. Update PHP version - Ensure you're running PHP 8.2 or higher

  2. Replace ErrorInterface type hints - Change to \Throwable:

    // Before
    use Errbit\Errors\ErrorInterface;
    function handle(ErrorInterface $error) { ... }
    
    // After
    function handle(\Throwable $error) { ... }

php8.2 and 8.3 support

25 Jun 08:26
f9a4815

Choose a tag to compare

Added the github actions to cover running test on the 8.2 and 8.3 version.
Added composer compatibility.

2,0.1

07 Feb 14:42
ee2624d

Choose a tag to compare

What's Changed

  • php8.0 - support removed some fancy stuff like readonly arguments by @emgiezet in #29

Full Changelog: 2.0.0...2.0.1

2.0.0 php 8.0 support

07 Feb 14:23
11d78f4

Choose a tag to compare

What's Changed

  • Major rewrite to php8.0
  • New composer dependencies
  • new Writer based on Guzzle HttpClient. works in sync and async.

Deprecations:

  • dropped php5.3 support

New Contributors

Full Changelog: 1.1.1...2.0.0