Skip to content

Add forward compatibility layer for symfony/console >7.4 #12445

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 1 commit into from
Jun 17, 2025

Conversation

chalasr
Copy link
Contributor

@chalasr chalasr commented Jun 12, 2025

Following symfony/symfony#60394. Please tell me if this should rather target main

@chalasr chalasr force-pushed the console-add-fc branch 2 times, most recently from dc624c1 to d6e96f9 Compare June 12, 2025 21:40
@chalasr
Copy link
Contributor Author

chalasr commented Jun 12, 2025

failing test looks flaky. unrelated

@Seldaek Seldaek added this to the 2.8 milestone Jun 17, 2025
@Seldaek Seldaek merged commit a77e5f0 into composer:2.8 Jun 17, 2025
17 of 20 checks passed
@Seldaek
Copy link
Member

Seldaek commented Jun 17, 2025

Thanks

@chalasr chalasr deleted the console-add-fc branch June 17, 2025 13:19
if (method_exists($app, 'addCommand')) {
$app->addCommand($cmd);
} else {
// Compatibility layer for symfony/console <7.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: move the comment before the if block, since the whole block is actually the compatibility layer.

@@ -372,7 +372,7 @@ private function doTestIntegration(string $file, string $message, ?string $condi

return $installer->run();
});
$application->add($install);
method_exists($application, 'addCommand') ? $application->addCommand($install) : $application->add($install);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't have a comment like the other ones.

@@ -420,7 +420,7 @@ private function doTestIntegration(string $file, string $message, ?string $condi

return $installer->run();
});
$application->add($update);
method_exists($application, 'addCommand') ? $application->addCommand($update) : $application->add($update);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line doesn't have a comment like the other ones.

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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy