1.15.2
Critical Fix
Fixed
- Migration Tool: Fixed
rector-migrate.phpto work correctly with user projects- Removed hardcoded
withPaths()that prevented migration from working - Users can now specify target paths via command line arguments
- Added documentation for processing multiple directories
- Matches pattern used in Ray.PsrCacheModule (PR #32)
- Removed hardcoded
- Type Annotations: Fixed PDO options type from
array<string>toarray<string, mixed>in 8 files - Doctrine Annotations Cleanup: Removed all remaining Doctrine annotation syntax from docblocks in source and test files
Changed
- Code Modernization: Converted annotation classes to readonly classes
Ray\AuraSqlModule\Annotation\TransactionalRay\AuraSqlModule\Annotation\PagerViewOptionRay\AuraSqlModule\Annotation\AuraSqlQueryConfigRay\AuraSqlModule\Annotation\Read
⚠️ Migration Tool Fix
Previous versions (1.15.0, 1.15.1) had a critical bug that prevented the migration tool from working with user projects. This release fixes that issue.
How to Migrate (Fixed)
# Process a single directory
vendor/bin/rector process src --config=vendor/ray/aura-sql-module/rector-migrate.php --dry-run
vendor/bin/rector process src --config=vendor/ray/aura-sql-module/rector-migrate.php
# Process multiple directories
vendor/bin/rector process src tests --config=vendor/ray/aura-sql-module/rector-migrate.phpSee ANNOTATION_TO_ATTRIBUTE.md for detailed migration guide.
Note
- This is a critical fix for users migrating from annotations to attributes
- Migration guide has been verified to work correctly with real user projects
- All annotation classes are now readonly (PHP 8.2+ feature)
- This fix is also available in 1.13.6 for PHP 8.0-8.3 users