Releases: ray-di/Ray.PsrCacheModule
Releases · ray-di/Ray.PsrCacheModule
1.5.1
Fixed
- Remove legacy doctrine annotation comments from provider classes to prevent
AnnotationExceptionwhen usingkoriym/attributeswithDualReader(#33, #34)
This patch release fixes an issue where legacy Doctrine annotation comments remaining in provider classes caused AnnotationException in downstream packages using koriym/attributes's DualReader to parse both annotations and PHP 8 attributes.
Full Changelog: 1.5.0...1.5.1
1.5.0
Changes
Changed
- PHP 8.2+ Requirement: Updated minimum PHP version from ^8.1 to ^8.2
- Symfony Cache Update: Updated dependency to
^6.0 || ^7.2 - Removed doctrine/annotations: Eliminated abandoned dependency, migrated to native PHP 8 attributes
- Code Modernization: Use readonly properties where applicable for immutability
Removed
- Serializable interface from cache adapters (now use
__serialize/__unserializemagic methods) - Unused
Php73BcSerializableTraitclass - Unused
RedisInstanceannotation class
Added
- Migration Tools: Added
rector-migrate.phpfor automated annotation-to-attribute migration - Migration Guide: Added
ANNOTATION_TO_ATTRIBUTE.mdwith comprehensive migration instructions - Documentation: Added CLAUDE.md with project architecture and development workflow
Fixed
- CI/CD workflows updated to latest GitHub Actions versions
- Replace deprecated
set-outputwith$GITHUB_OUTPUT - Add
--ignore-platform-req=phpfor PHP 8.5 compatibility testing - rector-migrate.php: Remove hardcoded paths to allow users to specify their own project paths
⚠️ Migration Required
Applications using annotations must migrate to PHP 8 attributes:
# Preview changes
vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.php --dry-run
# Apply migration
vendor/bin/rector process src --config=vendor/ray/psr-cache-module/rector-migrate.phpSee ANNOTATION_TO_ATTRIBUTE.md for detailed migration guide.
Why This Change?
The doctrine/annotations package has been officially abandoned by its maintainers and will no longer receive updates or security patches. This change:
- Eliminates security and compatibility risks from the abandoned package
- Adopts native PHP 8 attributes as the modern standard
- Improves performance (no runtime annotation parsing overhead)
- Provides migration tooling for users to update their applications
Supported Annotations
The migration tool automatically converts:
@Local→#[Local]- For non-shared cache (APCu/Filesystem)@Shared→#[Shared]- For shared cache (Redis/Memcached)@CacheDir→#[CacheDir]- Cache directory configuration@CacheNamespace→#[CacheNamespace]- Cache namespace configuration@RedisConfig→#[RedisConfig]- Redis connection configuration@MemcacheConfig→#[MemcacheConfig]- Memcached connection configuration
1.4.0
1.3.4
1.3.3
What's Changed
- Enable PHP 8.3 compat by @koriym in #20
- Fix Memcached bind by @apple-x-co in #21
New Contributors
- @apple-x-co made their first contribution in #21
Full Changelog: 1.3.2...1.3.3
1.3.2
1.3.1
What's Changed
- Symfony cache v6 support by @NaokiTsuchiya in #15
New Contributors
- @NaokiTsuchiya made their first contribution in #15
Full Changelog: 1.3.0...1.3.1
