Skip to content

Commit 7361c59

Browse files
committed
fix tests
1 parent a97e8c7 commit 7361c59

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

HttpCache/HttpCache.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,12 @@ protected function getOptions(): array
7979
return [];
8080
}
8181

82-
/**
83-
* @return SurrogateInterface
84-
*/
85-
protected function createSurrogate()
82+
protected function createSurrogate(): SurrogateInterface
8683
{
8784
return $this->surrogate ?? new Esi();
8885
}
8986

90-
/**
91-
* @return StoreInterface
92-
*/
93-
protected function createStore()
87+
protected function createStore(): StoreInterface
9488
{
9589
return $this->store ?? new Store($this->cacheDir ?: $this->kernel->getCacheDir().'/http_cache');
9690
}

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Doctrine\Common\Annotations\Annotation;
1515
use Psr\Cache\CacheItemPoolInterface;
1616
use Psr\Log\LoggerAwareInterface;
17+
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
1718
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
1819
use Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension;
1920
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage;
@@ -76,6 +77,8 @@
7677

7778
abstract class FrameworkExtensionTest extends TestCase
7879
{
80+
use ExpectDeprecationTrait;
81+
7982
private static $containerCache = [];
8083

8184
abstract protected function loadFromFile(ContainerBuilder $container, $file);

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"symfony/cache": "^5.4|^6.0",
2222
"symfony/config": "^5.4|^6.0",
2323
"symfony/dependency-injection": "^5.4|^6.0",
24+
"symfony/deprecation-contracts": "^2.1",
2425
"symfony/event-dispatcher": "^5.4|^6.0",
2526
"symfony/error-handler": "^5.4|^6.0",
2627
"symfony/http-foundation": "^5.4|^6.0",

0 commit comments

Comments
 (0)