Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#3044155: PHP7.1 vendor max Testing issue - DO NOT COMMIT shows
Drupal\BuildTests\Framework\Tests\DrupalMinkClientTest
fail: [Other] Line 0 of sites/default/files/simpletest/phpunit-2.xml:
PHPunit Test failed to complete; Error: Declaration of Drupal\BuildTests\Framework\DrupalMinkClient::followMetaRefresh($followMetaRefresh = true) should be compatible with Symfony\Component\BrowserKit\Client::followMetaRefresh(bool $followMetaRefresh = true)
Proposed resolution
Fix it
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3086005-2.patch | 672 bytes | alexpott |
#2 | 3086005-2-test.patch | 1.22 KB | alexpott |
Comments
Comment #2
alexpottComment #4
mikelutzLooks good. I know we are trying to avoid scaler type hints until 8.7 is eol, but extensions of vendor code will need a few exceptions.
Comment #5
Mile23Hey! Max tests to the rescue.
+1 on #4, and also: This is in code that's not in 8.7 and probably won't be.
Comment #6
mondrakeDoes this have any implication on MIN testing, too? i.e. should we also constrain the package in composer.json so that it won't downgrade to a version that has not the method with scalar typehints?
Comment #7
alexpott@mondrake our current version in composer.lock does not have scalar typehints... otherwise HEAD would be failing.
Comment #9
catchAgreed with the reasoning in #4. Committed beaa069 and pushed to 8.8.x. Thanks!
Comment #10
Mile23Another similar one: #3086557: Make DrupalMinkClient::request() compatible with max dependencies