Ignore phpunit deprecations already ignored by Core

Created on 9 July 2025, about 8 hours ago

Overview

Pipelines are reporting deprecations that are ignored by Drupal Core.

    1) /builds/project/experience_builder/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\experience_builder\Kernel\ApiAutoSaveControllerTest::testApiAutoSaveControllerGet (8157 times)
      /builds/project/experience_builder/tests/src/Kernel/ApiAutoSaveControllerTest.php:77
    
    * Drupal\Tests\experience_builder\Kernel\ApiAutoSaveControllerTest::testDelete (7843 times)
      /builds/project/experience_builder/tests/src/Kernel/ApiAutoSaveControllerTest.php:733
    
    * Drupal\Tests\experience_builder\Kernel\ApiAutoSaveControllerTest::testPost#authorized, with global (8414 times)
      /builds/project/experience_builder/tests/src/Kernel/ApiAutoSaveControllerTest.php:301
    
    * Drupal\Tests\experience_builder\Kernel\ApiAutoSaveControllerTest::testPost#authorized, without global (8256 times)
      /builds/project/experience_builder/tests/src/Kernel/ApiAutoSaveControllerTest.php:301
    
    * Drupal\Tests\experience_builder\Kernel\ApiAutoSaveControllerTest::testPost#unauthorized, with global (7848 times)
      /builds/project/experience_builder/tests/src/Kernel/ApiAutoSaveControllerTest.php:301
    
    * Drupal\Tests\experience_builder\Kernel\ApiAutoSaveControllerTest::testPost#unauthorized, without global (7848 times)
      /builds/project/experience_builder/tests/src/Kernel/ApiAutoSaveControllerTest.php:301

And this make review pipelines report a bit more complex.

This issue is to test if it makes sense to ignore it, and if so, how.

Proposed resolution

Include the core/.deprecations-ignore.txt in the SYMFONY_DEPRECATIONS_HELPER to avoid these deprecations in the phpunit reports.

User interface changes

Feature request
Status

Active

Version

0.0

Component

Code

Created by

🇪🇸Spain isholgueras

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024