Problem/Motivation
The request_dumper module needs a fix for the new symfony version:
W:
W: PHP Fatal error: Declaration of Drupal\request_dumper\StackMiddleware\RequestDumper::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MASTER_REQUEST, $catch = true) must be compatible with Symfony\Component\HttpKernel\HttpKernelInterface::handle(Symfony\Component\HttpFoundation\Request $request, int $type = self::MAIN_REQUEST, bool $catch = true): Symfony\Component\HttpFoundation\Response in /app/web/modules/contrib/request_dumper/src/StackMiddleware/RequestDumper.php on line 55
Steps to reproduce
Use the module with Drupal 10+
Proposed resolution
Fix the class
Add some (functional?) tests
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3394620-6.patch | 2.28 KB | pwolanin |
| #5 | 3394620-5.patch | 1.97 KB | pwolanin |
| #4 | 3394620-1.patch | 1.95 KB | pwolanin |
Comments
Comment #2
pwolanin commentedLooks like this just requires changing the 3rd arg to have a bool typehint, which should be back-compatible
Comment #3
pwolanin commentedOops, that's not the actual problem - it's actually the second arg maybe?
Comment #4
pwolanin commentedComment #5
pwolanin commentedComment #6
pwolanin commenteddoh - it's the return value annotation that's the issue
Comment #8
pwolanin commented