@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * Assign cache tags to a response |
| 63 | 63 | * |
| 64 | 64 | * @param Response $response |
| 65 | - * @param array $tags |
|
| 65 | + * @param string[] $tags |
|
| 66 | 66 | * @param bool $replace Whether to replace the current tags on the |
| 67 | 67 | * response |
| 68 | 68 | * |
@@ -413,6 +413,9 @@ |
||
| 413 | 413 | } |
| 414 | 414 | } |
| 415 | 415 | |
| 416 | + /** |
|
| 417 | + * @param string $msg |
|
| 418 | + */ |
|
| 416 | 419 | private function validateUrl($url, $msg) |
| 417 | 420 | { |
| 418 | 421 | $prefixed = $this->prefixSchema($url); |
@@ -14,9 +14,6 @@ |
||
| 14 | 14 | use FOS\HttpCache\SymfonyCache\CacheEvent; |
| 15 | 15 | use FOS\HttpCache\SymfonyCache\UserContextSubscriber; |
| 16 | 16 | use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache as BaseHttpCache; |
| 17 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
| 18 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
| 19 | -use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
|
| 20 | 17 | use Symfony\Component\HttpFoundation\Request; |
| 21 | 18 | use Symfony\Component\HttpKernel\HttpKernelInterface; |
| 22 | 19 | |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | * @param Request $request |
| 192 | 192 | * @param bool $match |
| 193 | 193 | * |
| 194 | - * @return \Mockery\MockInterface|RequestMatcherInterface |
|
| 194 | + * @return \Mockery\MockInterface |
|
| 195 | 195 | */ |
| 196 | 196 | private function getRequestMatcher(Request $request, $match) |
| 197 | 197 | { |
@@ -154,6 +154,11 @@ |
||
| 154 | 154 | private $request; |
| 155 | 155 | private $response; |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param EventDispatchingHttpCacheTest $test |
|
| 159 | + * @param Request $request |
|
| 160 | + * @param Response $response |
|
| 161 | + */ |
|
| 157 | 162 | public function __construct($test, $kernel, $request, $response = null) |
| 158 | 163 | { |
| 159 | 164 | $this->test = $test; |