Skip to content

Commit

Permalink
Merge pull request #21 from svenluijten/patch-1
Browse files Browse the repository at this point in the history
Fix: add missing quote in error message
  • Loading branch information
localheinz committed Jan 2, 2020
2 parents a8951fa + 91ad2e3 commit 13db08e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Factory.php
Expand Up @@ -31,7 +31,7 @@ public static function fromRuleSet(RuleSet $ruleSet, array $overrideRules = []):
{
if (\PHP_VERSION_ID < $ruleSet->targetPhpVersion()) {
throw new \RuntimeException(\sprintf(
'Current PHP version "%s is less than targeted PHP version "%s".',
'Current PHP version "%s" is less than targeted PHP version "%s".',
\PHP_VERSION_ID,
$ruleSet->targetPhpVersion()
));
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/FactoryTest.php
Expand Up @@ -51,7 +51,7 @@ public function testFromRuleSetThrowsRuntimeExceptionIfCurrentPhpVersionIsLessTh

$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage(\sprintf(
'Current PHP version "%s is less than targeted PHP version "%s".',
'Current PHP version "%s" is less than targeted PHP version "%s".',
\PHP_VERSION_ID,
$targetPhpVersion
));
Expand Down

0 comments on commit 13db08e

Please sign in to comment.