Skip to content

1.27.0

Choose a tag to compare

@koriym koriym released this 11 Nov 03:40
· 129 commits to 1.x since this release

Changes

Changed

  • PHP 8 Attributes Migration: Removed doctrine/annotations and doctrine/cache dependencies, 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 .gitignore for .phpunit.cache directory

⚠️ 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.php

Why 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