File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 15
15
use Composer \EventDispatcher \ScriptExecutionException ;
16
16
use Composer \IO \IOInterface ;
17
17
use Composer \Semver \Constraint \EmptyConstraint ;
18
+ use Composer \Semver \Constraint \MatchAllConstraint ;
18
19
use Composer \Util \ProcessExecutor ;
19
20
use Symfony \Component \Console \Output \OutputInterface ;
20
21
use Symfony \Component \Console \Output \StreamOutput ;
@@ -93,7 +94,7 @@ private function expandCmd(string $type, string $cmd)
93
94
private function expandSymfonyCmd (string $ cmd )
94
95
{
95
96
$ repo = $ this ->composer ->getRepositoryManager ()->getLocalRepository ();
96
- if (!$ repo ->findPackage ('symfony/console ' , new EmptyConstraint ())) {
97
+ if (!$ repo ->findPackage ('symfony/console ' , class_exists (MatchAllConstraint::class) ? new MatchAllConstraint () : new EmptyConstraint ())) {
97
98
$ this ->io ->writeError (sprintf ('<warning>Skipping "%s" (needs symfony/console to run).</> ' , $ cmd ));
98
99
99
100
return null ;
You can’t perform that action at this time.
0 commit comments