Skip to content

Use Rector to upgrade codebase to PHP 8.4 #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
694d4d5
Set default value for "old_stable" in CI workflow.
koriym Feb 1, 2025
6f45e88
Update pagerfanta dependency to support version 4.x
koriym Mar 11, 2025
108f33c
Add `#[Override]` annotations to methods across the codebase
koriym May 28, 2025
393f658
Make classes final and enhance security with SensitiveParameter
koriym May 28, 2025
5376d33
Update CI workflow to remove old_stable parameter
koriym May 28, 2025
82f059b
fixup! Set default value for "old_stable" in CI workflow.
koriym May 28, 2025
b07e6db
fixup! fixup! Set default value for "old_stable" in CI workflow.
koriym May 28, 2025
fad5427
Update PHPUnit dependency to version ^12.1
koriym May 28, 2025
76231df
Upgrade with rector to PHP 8.4 + PHPUnit 11
koriym May 28, 2025
2864e83
Remove Scrutinizer Code Quality badge from README
koriym May 28, 2025
7732128
Add UPGRADE.md for guidance on v1.x to v2.x transition
koriym May 28, 2025
16601c9
Update README for v2.x with PHP 8.4 and Aura.Sql 6.0 support
koriym May 28, 2025
f5f3f79
Update license year to 2025
koriym May 28, 2025
d81d538
Update README to remove DI trait section
koriym May 28, 2025
1b8888e
fixup! Update README to remove DI trait section
koriym May 28, 2025
f8fbb61
Add PHPUnit configuration and update .gitignore
koriym May 28, 2025
0c62b67
Add Rector configuration file for automated refactoring
koriym May 28, 2025
ffe27ae
Update PHPUnit configuration and remove phpunit.xml
koriym May 28, 2025
f9f9778
Add .phpunit.result.cache to .gitignore
koriym May 28, 2025
0f4617b
Update dependencies in vendor-bin/tools/composer.json
koriym May 28, 2025
8254eba
Update static analysis workflow to exclude PHPMD
koriym May 28, 2025
d1a6d84
Remove UPGRADE.md and add CHANGELOG.md for clarity
koriym May 28, 2025
9096c27
Update README.md to simplify installation section
koriym May 28, 2025
6d10b73
Fix formatting and typos in README.md
koriym May 28, 2025
540241c
Update dependencies in vendor-bin tools
koriym May 28, 2025
3f16ebe
Update Pagerfanta dependency to support version 4.7
koriym May 28, 2025
817e8a1
Update dependencies and remove unused packages.
koriym May 28, 2025
30ac750
Update README to use PHP attributes instead of annotations
koriym May 28, 2025
a590324
Update README.md with corrected PHP use statements
koriym May 28, 2025
5b79ff1
Update PHPUnit schema to version 12.0
koriym May 28, 2025
43a4ffc
Update annotation syntax for AuraSqlQueryConfig
koriym May 28, 2025
7510547
Update composer.json
koriym May 28, 2025
ad24c2f
Update configuration to remove 'old_stable' PHP version
koriym May 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ jobs:
ci:
uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1
with:
current_stable: 8.4
current_stable: "8.4"
8 changes: 6 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Static Analysis
# This workflow runs static analysis on the codebase using PHPStan and Psalm.
# PHPMD is not included in this workflow, as it is not supported by the PHP 8.4 yet.
# Use this workflow temporarily until PHPMD supports PHP 8.4.

name: Static Analysis (No PHPMD)

on:
push:
Expand All @@ -7,7 +11,7 @@ on:

jobs:
sa:
uses: ray-di/.github/.github/workflows/static-analysis.yml@v1
uses: ray-di/.github/.github/workflows/static-analysis-no-phpmd.yml@v1
with:
php_version: 8.4
has_crc_config: false
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/build/
/vendor/
/composer.lock
/.phpunit.result.cache
/tests/tmp/*
/.phpcs-cache
/.php_cs.cache
/.phpcs-cache
/vendor-bin/tools/vendor/
/.phpunit.cache
/vendor-bin/tools/vendor/
/.phpunit.result.cache
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## [1.18.0]

### Changed
- Updated Aura.Sql dependency from ^5.0 to ^6.0 for PHP 8.4 compatibility
- Internal PDO handling improvements for PHP 8.4

### Note
- **No code changes required** - all APIs remain identical
- Automatic compatibility with both PHP 8.1-8.3 (Aura.Sql v5) and PHP 8.4+ (Aura.Sql v6)
Loading
Loading