-
Notifications
You must be signed in to change notification settings - Fork 0
chore: upgrade to PHP 8.5 #349
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
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
863e764
chore: bump Docker base images to PHP 8.5
kayjoosten 161286b
chore: composer update for PHP 8.5
kayjoosten 9b41f91
chore: yarn upgrade
kayjoosten 3ba1233
chore: fix leftover node-version in daily-security-check.yml
kayjoosten 02fae9f
chore: add Rector, apply PHP 8.5 cleanup
kayjoosten 2fe1337
fix: revert Twig attribute-based extension registration (unsupported …
kayjoosten 0d02f2c
fix: trim phpstan baseline follow-ups
kayjoosten 6a953a9
fix: import TypeError and RuntimeException instead of using FQCN
kayjoosten ae2a89c
style: split multi-param method signatures per phpcs sniff
kayjoosten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| use Rector\Config\RectorConfig; | ||
|
|
||
| return RectorConfig::configure() | ||
| ->withPaths([__DIR__.'/../../bin', __DIR__.'/../../config', __DIR__.'/../../src', __DIR__.'/../../tests']) | ||
| ->withPhpSets() | ||
| ->withComposerBased(symfony: true, phpunit: true) | ||
| ->withAttributesSets(symfony: true, phpunit: true) | ||
| ->withSkip([ | ||
| \Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector::class, | ||
| \Rector\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector::class, | ||
| // Converts getFilters()/getFunctions() to #[AsTwigFilter]/#[AsTwigFunction] attributes, | ||
| // which requires symfony/twig-bundle 7.3+. This app runs 6.4.*, where the resulting | ||
| // classes no longer implement Twig\Extension\ExtensionInterface (since they stop | ||
| // extending AbstractExtension), which fatals the Twig environment at boot. | ||
| \Rector\Symfony\Symfony73\Rector\Class_\GetFiltersAndFunctionsToAsTwigAttributeRector::class, | ||
| ]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/usr/bin/env sh | ||
|
|
||
| # Ensure we run from project root | ||
| cd "$(dirname "$0")/../../" || exit 1 | ||
| ./vendor/bin/rector --config=ci/qa/rector.php "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| PHP_VERSION=82 | ||
| PHP_VERSION=85 | ||
| SYMFONY_VERSION=6 | ||
|
johanib marked this conversation as resolved.
|
||
| ENCORE=yes | ||
| NODE_VERSION=20 | ||
| NODE_VERSION=24 | ||
| ASSETIC=no | ||
| COMPOSER_VERSION=2 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.