diff --git a/src/Factory.php b/src/Factory.php index 99d6474d..19e5bd02 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -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() )); diff --git a/test/Unit/FactoryTest.php b/test/Unit/FactoryTest.php index 017edb0f..e2f5a574 100644 --- a/test/Unit/FactoryTest.php +++ b/test/Unit/FactoryTest.php @@ -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 ));