Add Symfony 7/8 compatibility#25
Open
Kalipso0505 wants to merge 3 commits intospaceemotion:wip/v1from
Open
Conversation
8c772a7 to
a0c90af
Compare
- Bump minimum PHP version to >=8.2 (required by Symfony 7+) - Add Symfony 8 support for symfony/console and symfony/process - Drop EOL Symfony versions (^3, ^4, ^5) and incompatible dependency versions - Replace deprecated static $defaultName with #[AsCommand] attribute (removed in Symfony 7) - Replace Application::add() with Application::addCommand() (removed in Symfony 8) - Remove redundant SUCCESS constant (inherited from Command since Symfony 5.4) - Replace abandoned qossmic/deptrac-shim with qossmic/deptrac ^2.0 - Normalize ext-SimpleXML to ext-simplexml and fix sorting - Remove unused file_get_contents import in Rector.php - Use literal command name in setDefaultCommand() to avoid nullable type issue - Simplify PHP_OS_FAMILY check (always defined since PHP 7.2) - Update Dockerfile to PHP 8.2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Replace PHP matrix [7.4, 8.0, 8.1] with [8.2, 8.3] - Replace deprecated ::set-output with $GITHUB_OUTPUT - PHP 8.4 excluded until vimeo/psalm supports it Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Rename deprecated excludes_analyse to excludePaths - Remove stale ignoreErrors pattern for PHPCSTD_ constants - Add pre-existing errors in Config.php and RunCommand.php to baseline (uncovered by the now-working PHPStan config) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
a0c90af to
e3e5c13
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
symfony/consoleandsymfony/processstatic $defaultNamewith#[AsCommand]attribute (removed in Symfony 7)Application::add()withApplication::addCommand()(removed in Symfony 8)SUCCESSconstant (inherited fromCommandsince Symfony 5.4)qossmic/deptrac-shimwithqossmic/deptrac^2.0::set-outputwith$GITHUB_OUTPUTin CI workflowssymplify/easy-coding-standard-prefixedfrom suggestPHP_OS_FAMILYcheck (always defined since PHP 7.2)Test plan
composer installresolves successfully with Symfony 7.xcomposer installresolves successfully with Symfony 8.xbin/phpcstdruns without errors🤖 Generated with Claude Code