| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Psr15ToSymfonyBridgeTest extends TestCase |
||
| 15 | { |
||
| 16 | public function testProcess() |
||
| 17 | { |
||
| 18 | // Symfony middleware that returns 'foo' |
||
| 19 | $symfonyMiddleware = new class implements HttpKernelInterface |
||
| 20 | { |
||
| 21 | public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true) |
||
| 36 | } |
||
| 37 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: