Skip to content

Commit

Permalink
And use soft-require as key ofcourse...
Browse files Browse the repository at this point in the history
  • Loading branch information
paul999 committed Jan 31, 2016
1 parent 4957a6f commit 54b1774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tests/Tests/epv_test_validate_composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private function validateVersion(ComposerFileInterface $file)

if (preg_match($regex, $json['extra']['soft-require']['phpbb/phpbb']))
{
$replace = preg_replace($regex, '$1$2', $json['extra']['require']['phpbb/phpbb']);;
$replace = preg_replace($regex, '$1$2', $json['extra']['soft-require']['phpbb/phpbb']);;
$this->addMessageIfBooleanTrue(true, Output::ERROR, sprintf('A invalid version constraint is used in soft-require: phpbb/phpbb. You can\'t combine a <|<=|~|\^|>|>= with a *|x. Please replace %s with %s', $json['extra']['soft-require']['phpbb/phpbb'], $replace));
}
}
Expand Down

0 comments on commit 54b1774

Please sign in to comment.