Releases: emgiezet/errbit-php
Releases · emgiezet/errbit-php
3.0.3
3.0.2
3.0.1
Added php 8.3, 8.4 support and removed php 8.0 support
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\Throwabletype hints instead - Changed
WriterInterface::write()signature - Now accepts\Throwableinstead ofErrorInterface - Updated error class constructors -
Notice,Warning,Error,Fatal, andBaseErrornow 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
ErrorHandlersclass - New tests for
Noticeexception class (XML generation, filtering, formatting) - New tests for
XmlBuilderutility class - New tests for
SocketWriterclass - Extended tests for
GuzzleWriterclass - Extended tests for
Errbitmain class (configuration, callbacks, user agent filtering)
Fixed
- Fixed
ErrorHandlers::onException()method to properly convert exceptions usingConverter - 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\Throwableinstead
Migration Guide
If upgrading from v2.x:
-
Update PHP version - Ensure you're running PHP 8.2 or higher
-
Replace
ErrorInterfacetype hints - Change to\Throwable:// Before use Errbit\Errors\ErrorInterface; function handle(ErrorInterface $error) { ... } // After function handle(\Throwable $error) { ... }
php8.2 and 8.3 support
Added the github actions to cover running test on the 8.2 and 8.3 version.
Added composer compatibility.
2,0.1
2.0.0 php 8.0 support
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