Skip to content

1.15.2

Choose a tag to compare

@koriym koriym released this 10 Nov 02:57
· 51 commits to 1.x since this release

Critical Fix

Fixed

  • Migration Tool: Fixed rector-migrate.php to 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)
  • Type Annotations: Fixed PDO options type from array<string> to array<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\Transactional
    • Ray\AuraSqlModule\Annotation\PagerViewOption
    • Ray\AuraSqlModule\Annotation\AuraSqlQueryConfig
    • Ray\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.php

See 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

Related PRs

  • #81: Readonly classes conversion
  • #83: Doctrine annotation cleanup + rector-migrate.php fix