1.27.0
Changes
Changed
- PHP 8 Attributes Migration: Removed
doctrine/annotationsanddoctrine/cachedependencies, migrated to native PHP 8 attributes - Minimum PHP Version: Updated requirement from PHP 8.1 to PHP 8.2
- Development Tools: Updated PHPUnit from 9.6 to 11.0, migrated test suite to PHP 8 attributes
- Dependencies: Updated to stable Ray dependencies (ray/aop ^2.18.0, ray/di ^2.18.0), replaced nocarrier/hal with koriym/hal ^1.1
- CI/CD: Updated Scrutinizer CI to PHP 8.4
Removed
doctrine/annotations(abandoned package)doctrine/cache(abandoned package)symfony/polyfill-php83(unnecessary for PHP 8.2+)- Backward compatibility code for annotations
Fixed
- CI workflow to remove PHP 8.1 from test matrix
- Parameter processing to handle methods without attributes correctly
- Updated
.gitignorefor.phpunit.cachedirectory
⚠️ Migration Required
Applications using annotations must migrate to PHP 8 attributes:
composer require --dev bearsunday/rector-bearsunday
# Preview changes
vendor/bin/rector process src --config=vendor/bearsunday/rector-bearsunday/rector.php --dry-run
# Apply migration
vendor/bin/rector process src --config=vendor/bearsunday/rector-bearsunday/rector.phpWhy This Change?
The doctrine/annotations package has been officially abandoned by its maintainers. This change:
- Eliminates security and compatibility risks from abandoned packages
- Adopts native PHP 8 attributes as the modern standard
- Improves performance (no runtime annotation parsing overhead)
- Provides automated migration tooling
Full changelog: https://github.com/bearsunday/BEAR.Resource/blob/1.x/CHANGELOG.md