updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -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();