Skip to content

Commit

Permalink
Allow using self.version with require command, fixes #10593
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Mar 15, 2022
1 parent bf235eb commit 2d7f156
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Composer/Command/RequireCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ protected function execute(InputInterface $input, OutputInterface $output)

return 1;
}
if ($constraint === 'self.version') {
continue;
}
$versionParser->parseConstraints($constraint);
}

Expand Down

0 comments on commit 2d7f156

Please sign in to comment.