8000 Fix deprecation warnings · symfony/symfony@8491dfd · GitHub
[go: up one dir, main page]

Skip to content

Commit 8491dfd

Browse files
committed
Fix deprecation warnings
1 parent 2a058fd commit 8491dfd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/Config/Tests/ConfigCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testToString()
4747
{
4848
$cache = new ConfigCache($this->cacheFile, true);
4949

50-
$this->assertSame($this->cacheFile, (string) $cache);
50+
$this->assertSame($this->cacheFile, $cache->getPath());
5151
}
5252

5353
public function testCacheIsNotFreshIfFileDoesNotExist()

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ protected function initializeContainer()
546546
$fresh = false;
547547
}
548548

549-
require_once $cache;
549+
require_once $cache->getPath();
550550

551551
$this->container = new $class();
552552
$this->container->set('kernel', $this);
@@ -695,7 +695,7 @@ protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container
695695
$dumper->setProxyDumper(new ProxyDumper());
696696
}
697697

698-
$content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass, 'file' => (string) $cache));
698+
$content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass, 'file' => $cache->getPath()));
699699
if (!$this->debug) {
700700
$content = static::stripComments($content);
701701
}

0 commit comments

Comments
 (0)
0