From 2cef703fbbabddc3727b042e43be48ba609e4273 Mon Sep 17 00:00:00 2001 From: Sven Luijten Date: Sat, 28 Dec 2019 16:56:07 +0100 Subject: [PATCH] Fix: add missing quote in error message --- src/Factory.php | 2 +- test/Unit/FactoryTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index 32bfd036..ee8cdde8 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 8e84c2e1..b62a870a 100644 --- a/test/Unit/FactoryTest.php +++ b/test/Unit/FactoryTest.php @@ -52,7 +52,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 ));