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
getObjectAttribute() is deprecated and will be removed in PHPUnit 9.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#11 | 3126971-11.patch | 2.89 KB | mondrake |
Comments
Comment #2
mondrakeHeavy-lifting Reflection.
Comment #3
mondrakeHm. Apparently this method is internally called by PHPUnit itself, so it's better wait for the other issues to be solved first.
Comment #4
mondrakeThis needs to wait for #3126970: Replace usage of readAttribute() that is deprecated
Comment #5
alexpottThe blocker is in.
Comment #6
mondrakeOn it.
Comment #7
mondrakeRerolled, and renaming
PHPUnitWarnings8
toPhpUnitWarningsCompatibilityTrait
according to #3127141-9: Use PHPUnit 9 for PHP 7.4+, while keeping support for PHPUnit 8.4 in PHP 7.3 to be prepared for the PHPUnit9 deprecation warnings silencers.Comment #8
longwaveAs the trait is now empty should we remove it from all classes and then add it back to only those that need it in the other issue?
Or even, remove the old trait entirely in this issue and start with a new trait in the other one?
Comment #9
mondrakeI think we should try to do the rename here... #3127674: Update dependencies for Drupal 9.0 needs to add another PHPUnit8 deprecation just freshly introduced by 8.5.3... it seems to me silly to remove here just to readd there with no time in between.
Comment #10
alexpottI think this issue should empty out the array and add the empty comment. I think the issue the adds back stuff for making PHPUnit 9 work or updates PHPUnit 8 should do the name change.
Comment #11
mondrake#10 makes sense.
Comment #12
longwaveReflection is the only thing that makes sense for each of these changes.
Comment #13
alexpottCommitted and pushed b739bebc39 to 9.1.x and 0eae85a6d9 to 9.0.x. Thanks!