This is just a small quick fix issue which came to light in
#2976394: Allow Symfony 4.4 to be installed in Drupal 8
Drupal9 will jump to Symfony 4.x -- and when we do a bug in CustomPageExceptionHtmlSubscriberTest
will become prominent.
Drupal\Tests\Core\EventSubscriber\CustomPageExceptionHtmlSubscriberTest::testHandleWithPostRequest
TypeError: Argument 3 passed to Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent::__construct() must be of the type integer, string given, called in /var/www/html/core/tests/Drupal/Tests/Core/EventSubscriber/CustomPageExceptionHtmlSubscriberTest.php on line 141
Comment | File | Size | Author |
---|---|---|---|
#7 | interdiff-2997771-4-7.txt | 5.92 KB | martin107 |
#7 | 2997771-7.patch | 4.57 KB | martin107 |
Comments
Comment #2
martin107 CreditAttribution: martin107 as a volunteer commentedHere is the patch
Comment #3
martin107 CreditAttribution: martin107 as a volunteer commentedand becomes a
Comment #4
martin107 CreditAttribution: martin107 as a volunteer commentedThe misconception is threaded through many other test files.
Comment #5
catchComment #6
longwaveThis looks like the right fix, I checked the Symfony docs and the third constructor argument is documented as
so passing arbitrary strings here was incorrect.
However:
The MASTER_REQUEST constant actually belongs to Symfony\Component\HttpKernel\HttpKernelInterface (KernelInterface extends this).
Comment #7
martin107 CreditAttribution: martin107 as a volunteer commentedThank you for taking the time to pick over my thinking.
Fixed.
Comment #8
longwavePerfect!
Comment #9
catchCommitted 0ab2dc4 and pushed to 8.7.x. Thanks!