Skip to content

Commit 206165f

Browse files
committed
Fix quotes in exception messages
1 parent 5cac0c7 commit 206165f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ExpressionLanguage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct($cache = null, array $providers = [])
4141
@trigger_error(sprintf('Passing an instance of %s as constructor argument for %s is deprecated as of 3.2 and will be removed in 4.0. Pass an instance of %s instead.', ParserCacheInterface::class, self::class, CacheItemPoolInterface::class), E_USER_DEPRECATED);
4242
$cache = new ParserCacheAdapter($cache);
4343
} elseif (!$cache instanceof CacheItemPoolInterface) {
44-
throw new \InvalidArgumentException(sprintf('Cache argument has to implement %s.', CacheItemPoolInterface::class));
44+
throw new \InvalidArgumentException(sprintf('Cache argument has to implement "%s".', CacheItemPoolInterface::class));
4545
}
4646
}
4747

Tests/ExpressionLanguageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testCachedParseWithDeprecatedParserCacheInterface()
9696
public function testWrongCacheImplementation()
9797
{
9898
$this->expectException('InvalidArgumentException');
99-
$this->expectExceptionMessage('Cache argument has to implement Psr\Cache\CacheItemPoolInterface.');
99+
$this->expectExceptionMessage('Cache argument has to implement "Psr\Cache\CacheItemPoolInterface".');
100100
$cacheMock = $this->getMockBuilder('Psr\Cache\CacheItemSpoolInterface')->getMock();
101101
new ExpressionLanguage($cacheMock);
102102
}

0 commit comments

Comments
 (0)