Open andypost opened 4 months ago
It will be a blocker for Drupal 11
@andypost , please explain how Mink method signatures are affecting/blocking Drupal?
Deprecation warnings affects tests so they fail. In production you can disable this warnings
For example this pipeline
Testing Drupal\FunctionalJavascriptTests\Tests\JSWebAssertTest
E 1 / 1
(100%)
Deprecated: Behat\Mink\Exception\ElementHtmlException::__construct():
Implicitly marking parameter $exception as nullable is deprecated, the
explicit nullable type must be used instead in
/builds/issue/drupal-3427903/vendor/behat/mink/src/Exception/ElementHtmlException.php
on line 39
Time: 00:14.711, Memory: 8.00 MB
There was 1 error:
1) Drupal\FunctionalJavascriptTests\Tests\JSWebAssertTest::testJsWebAssert
This test printed output:
Deprecated: Behat\Mink\Exception\ElementHtmlException::__construct():
Implicitly marking parameter $exception as nullable is deprecated, the
explicit nullable type must be used instead in
/builds/issue/drupal-3427903/vendor/behat/mink/src/Exception/ElementHtmlException.php
on line 39
/builds/issue/drupal-3427903/vendor/phpunit/phpunit/src/Framework/TestResult.php:956
ERRORS!
Tests: 1, Assertions: 24, Errors: 1.
I did update of comment with example
I checked files with $ php -d error_reporting="E_ALL" -l Mink/*/*/*
to make sure no more deprecations left
Last deprecations for PHP 8.4 will be commited in 2 weeks https://wiki.php.net/todo/php84
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.72%. Comparing base (
d8527fd
) to head (4a730e1
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It will be a blocker for Drupal 11
Links