updated-packages
This commit is contained in:
@@ -16,9 +16,9 @@ namespace Symfony\Component\HttpKernel\CacheClearer;
|
||||
*/
|
||||
class Psr6CacheClearer implements CacheClearerInterface
|
||||
{
|
||||
private $pools = array();
|
||||
private $pools = [];
|
||||
|
||||
public function __construct(array $pools = array())
|
||||
public function __construct(array $pools = [])
|
||||
{
|
||||
$this->pools = $pools;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ class Psr6CacheClearer implements CacheClearerInterface
|
||||
public function getPool($name)
|
||||
{
|
||||
if (!$this->hasPool($name)) {
|
||||
throw new \InvalidArgumentException(sprintf('Cache pool not found: %s.', $name));
|
||||
throw new \InvalidArgumentException(sprintf('Cache pool not found: "%s".', $name));
|
||||
}
|
||||
|
||||
return $this->pools[$name];
|
||||
@@ -40,7 +40,7 @@ class Psr6CacheClearer implements CacheClearerInterface
|
||||
public function clearPool($name)
|
||||
{
|
||||
if (!isset($this->pools[$name])) {
|
||||
throw new \InvalidArgumentException(sprintf('Cache pool not found: %s.', $name));
|
||||
throw new \InvalidArgumentException(sprintf('Cache pool not found: "%s".', $name));
|
||||
}
|
||||
|
||||
return $this->pools[$name]->clear();
|
||||
|
Reference in New Issue
Block a user