- Issue created by @isholgueras
- Merge request !1255Draft: Issue #3534917: Ignore non-experience_builder PhpUnit deprecations → (Open) created by isholgueras
- 🇫🇷France dydave
I can also confirm seeing these deprecation messages in current build pipelines, see:
https://git.drupalcode.org/issue/admin_toolbar-3532958/-/jobs/5862610#L1291 test triggered 1 deprecation: 1) /builds/issue/admin_toolbar-3532958/vendor/symfony/deprecation-contracts/function.php:25 Since symfony/validator 7.3: Passing an array of options to configure the "Drupal\Core\Validation\Plugin\Validation\Constraint\NotNullConstraint" constraint is deprecated, use named arguments instead. Triggered by: * Drupal\Tests\admin_toolbar_search\FunctionalJavascript\AdminToolbarToolsSearchTest::testToolbarSearch (34 times) /builds/issue/admin_toolbar-3532958/admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarToolsSearchTest.php:112
Would you have any advice on how these deprecation warnings could be addressed?The error message is not very clear: would there be any code changes expected on our end?
See the line of code reported above:
https://git.drupalcode.org/issue/admin_toolbar-3532958/-/blob/3532958-35...What should we change to fix these warnings in the code reported as deprecated?
Any pointers, related issues or recommendations would be greatly appreciated.
Thanks in advance! - 🇪🇸Spain isholgueras
I've configured it to just have deprecations we have in
experience_builder
.
I've also disabled the fail on deprecations with:
-SYMFONY_DEPRECATIONS_HELPER= "disabled&ignoreFile=$DRUPAL_PROJECT_FOLDER/.phpunit-deprecation-ignore.txt"
(see more)
-PHPUNIT_FAIL_ON_PHPUNIT_DEPRECATION=0
: (see more)But the job is still failing. Any idea?
- 🇪🇸Spain isholgueras
I've set
SYMFONY_DEPRECATIONS_HELPER=max[total]=99999
and it doesn't work either.