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
In #3261266: Remove deprecated code from the testing framework (base classes, listeners, etc), we kept a layer to control that WebAssert methods do not get called with a wrong number of parameters, waiting for PHPStan for a better solution.
Now the solution is there: PHPStan level 1 rule; and we can get rid of that layer.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3322961
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3322961-fix-webassert-since changes, plain diff MR !2997
Comments
Comment #3
mondrakeComment #4
mallezieLooking at the MR this seems a nice cleanup. And indeed since we now have phpstan on level 1, no new items could be introduced here, which is what the old code tried to prevent us from.
Comment #6
longwaveCommitted and pushed 5c1863a060 to 10.1.x and d2e813ee08 to 10.0.x. Thanks!
Comment #8
Wim LeersVery nice! 🤩