Skip to content

Commit ae78b82

Browse files
committed
fix phpstan test errors
1 parent 560f1fd commit ae78b82

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: Pull in optional dependencies
1919
run: |
20-
composer require --no-update symfony/http-kernel symfony/event-dispatcher symfony/process phpunit/phpunit psr/log toflar/psr6-symfony-http-cache-store
20+
composer require --no-update symfony/http-kernel symfony/event-dispatcher symfony/process phpunit/phpunit toflar/psr6-symfony-http-cache-store
2121
composer update --no-dev --no-progress
2222
2323
- name: PHPStan

phpstan.tests.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ parameters:
22
level: 1
33
paths:
44
- tests
5+
ignoreErrors:
6+
# we can add the return type declaration when dropping support for PHP < 7.4
7+
- Method FOS\HttpCache\Tests\Unit\SymfonyCache\AppCache::fetch() should return Symfony\Component\HttpFoundation\Response but return statement is missing.

tests/Functional/Fixtures/Symfony/AppCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use FOS\HttpCache\SymfonyCache\RefreshListener;
2121
use FOS\HttpCache\SymfonyCache\UserContextListener;
2222
use Symfony\Component\HttpFoundation\Request;
23+
use Symfony\Component\HttpFoundation\Response;
2324
use Symfony\Component\HttpKernel\HttpCache\HttpCache;
2425
use Symfony\Component\HttpKernel\HttpCache\StoreInterface;
2526
use Symfony\Component\HttpKernel\HttpCache\SurrogateInterface;

0 commit comments

Comments
 (0)