Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoid incompatibility with symfony/console 7#52923

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:5.4fromjdecool:fix-console-conflict
Dec 8, 2023
Merged

Avoid incompatibility with symfony/console 7#52923

fabpot merged 1 commit intosymfony:5.4fromjdecool:fix-console-conflict
Dec 8, 2023

Conversation

jdecool
Copy link
Contributor

@jdecooljdecool commentedDec 7, 2023
edited
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Issues-
LicenseMIT

The FrameworkBundle has no constraint on thesymfony/console component.

So a project can have acomposer.json similar to this one:

{"require": {"php":">=8.1","ext-ctype":"*","ext-iconv": "*","symfony/console":"^7.0","symfony/framework-bundle":"5.4.*"    },}

Using this configuration, it will install the console component in version 7.0.1 and the framework in 5.4.32.

But this error will occur:

!!!!  Fatal error: Declaration of Symfony\Bundle\FrameworkBundle\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /Users/jeremy/Workspace/personnal/bug-test/vendor/symfony/framework-bundle/Console/Application.php on line 72!!  PHP Fatal error:  Declaration of Symfony\Bundle\FrameworkBundle\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /Users/jeremy/Workspace/personnal/bug-test/vendor/symfony/framework-bundle/Console/Application.php on line 72!!  Symfony\Component\ErrorHandler\Error\FatalError {#16!!    #message: "Compile Error: Declaration of Symfony\Bundle\FrameworkBundle\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int"!!    #code: 0!!    #file: "./vendor/symfony/framework-bundle/Console/Application.php"!!    #line: 72!!    -error: array:4 [!!      "type" => 64!!      "message" => "Declaration of Symfony\Bundle\FrameworkBundle\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Application::doRun(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int"!!      "file" => "/Users/jeremy/Workspace/personnal/bug-test/vendor/symfony/framework-bundle/Console/Application.php"!!      "line" => 72!!    ]!!  }!!

So I suggest to add aconflict to avoid this issue.

@carsonbotcarsonbot added this to the5.4 milestoneDec 7, 2023
@jdecooljdecool changed the titleAvoid incompatibility with symfony/console 7[FrameworkBundle] Avoid incompatibility with symfony/console 7Dec 7, 2023
@carsonbotcarsonbot changed the title[FrameworkBundle] Avoid incompatibility with symfony/console 7Avoid incompatibility with symfony/console 7Dec 8, 2023
@fabpot
Copy link
Member

Thank you@jdecool.

@fabpotfabpot merged commita3361bd intosymfony:5.4Dec 8, 2023
@jdecooljdecool deleted the fix-console-conflict branchDecember 8, 2023 14:13
@xabbuh
Copy link
Member

Not sure how helpful this change actually is as Composer could simply stick with FrameworkBundle 5.4.32 or lower and still install version 7 of the Console component.

This was referencedDec 30, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@stofstofstof approved these changes

@nicolas-grekasnicolas-grekasAwaiting requested review from nicolas-grekas

Assignees
No one assigned
Projects
None yet
Milestone
5.4
Development

Successfully merging this pull request may close these issues.

5 participants
@jdecool@fabpot@xabbuh@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp