Skip to content

Update Command classes for Symfony 7 compatibility (#28)#31

Merged
totten merged 2 commits intocivicrm:masterfrom
totten:master-symfony-7
Nov 1, 2025
Merged

Update Command classes for Symfony 7 compatibility (#28)#31
totten merged 2 commits intocivicrm:masterfrom
totten:master-symfony-7

Conversation

@totten
Copy link
Member

@totten totten commented Nov 1, 2025

Re-submission of @emembeka's #29, with re-base for current master.

(Note: We needed some toolchain maintenance (#30 etal). The test-matrix is back up, and it now reproduces the problem of #28 when testing with bleeding-edge version of composer, i.e. the composer self-update --snapshot. Hopefully, with a new run of the PR, we can see that patch fixing the test-failure. 🤞)

@totten
Copy link
Member Author

totten commented Nov 1, 2025

After another little tweak, it's working now. Thanks @emembeka!

@totten totten merged commit 608f4d6 into civicrm:master Nov 1, 2025
6 checks passed
@totten totten deleted the master-symfony-7 branch November 1, 2025 14:24
@finnef
Copy link

finnef commented Mar 6, 2026

I think the configure() function also misses a return type statement.

On PHP8.4 (using CiviCRM 6.12) I still get
PHP Fatal error: Declaration of Civi\CompilePlugin\Command\CompileCommand::configure() must be compatible with Symfony\Component\Console\Command\Command::configure(): void in /app/vendor/civicrm/composer-compile-plugin/src/Command/CompileCommand.php on line 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants