Problem/Motivation
PHP deprecation notice:
PHP Deprecated: a:5:{s:11:"deprecation";s:109:"Creation of dynamic property Drupal\Tests\redirect\Functional\RedirectUITest::$maximumRedirects is deprecated";s:5:"class";s:47:"Drupal\Tests\redirect\Functional\RedirectUITest";s:6:"method";s:16:"testRedirectLoop";s:15:"triggering_file";s:112:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/redirect/tests/src/Functional/RedirectUITest.php";s:11:"files_stack";a:7:{i:0;s:112:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/redirect/tests/src/Functional/RedirectUITest.php";i:1;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:2;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:3;s:91:"/home/runner/work/acquia_cms/orca-build/vendor/phpunit/phpunit/src/Framework/TestResult.php";i:4;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:5;s:19:"Standard input code";i:6;s:19:"Standard input code";}} in /home/runner/work/acquia_cms/orca-build/vendor/symfony/phpunit-bridge/Legacy/SymfonyTestsListenerTrait.php on line 284
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 3357833-redirect-php-8-2-compatibility-47-diff.patch | 7.38 KB | andre.bonon |
| #11 | Screenshot 2023-05-18 at 9.10.15 AM.png | 69.22 KB | ankitv18 |
| #5 | Screenshot 2023-05-15 at 10.42.32 AM.png | 574.66 KB | rajeshreeputra |
Issue fork redirect-3357833
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:
Comments
Comment #4
rajeshreeputraComment #5
rajeshreeputraTest passing on local hence requesting review.

Comment #6
ankitv18 commentedComment #7
ankitv18 commentedAll changes are looking fine to me wrt Drupal version 10.0.7 and below tested with PHP 8.1 and 8.2 ~~ Hence marking this as RTBC.
Note: One test case is failing against for Drupal version 10.1.x with php 8.2
Comment #8
ankitv18 commentedComment #9
berdirReview posted. Try to avoid unrelated changes, the only really required change here that is in scope is defining the new properties.
Comment #10
berdirOne more comment.
Comment #11
ankitv18 commentedPlease review MR!47, FunctionalJavascriptTest is failing on Drupal 10.1 caused by bulk operation with default option as -select-

Attaching the screenshot for your reference.
Comment #12
deepakkm commentedRan test locally on php8.2 and are passing, also Changes looks good to me.
Hence moving into RTBC.
Comment #13
kristen polAssigning to myself as I'm triaging all RTBC issues.
Comment #14
kristen polBeen reviewing the comments and the commits and diffing things. Having the coding standard changes in it MR does make it harder to review which is something @Berdir mentioned above.
All permutations of tests have been run for 9.5/10.0/10.1 and pass which is good. I'm just trying to decide if this should be manually tested on all these version but that would be a bit labor intensive. Also, the info file has
^9.2so I'll fire up tests for that at least to see what happens.UPDATE: Can't run tests here below 9.5 so maybe I will at least test it on 9.2 manually.
Comment #15
kristen polTesting on 9.2 + PHP 8.0 went well.
UPDATE: Actually I was testing from an old project with directory name
drupal92but the site was actually 9.4 so it worked fine on 9.4 + PHP 8.0. I'll try on 9.2.UPDATE2: Docker is misbehaving so I'm parking this for the moment.
Feel free to test on 9.2 + PHP 7.4!
Comment #16
heddnI've tested w/ PHP 8.2 and Core 10.1. Without the patch, when I went to re-save all views, I got warnings about dynamic properties. With the patch, I no longer get those warnings.
Tested using
drush php:Comment #17
kristen polThanks @heddn. If this can be tested on 9.2 with PHP 7.4 then I'd feel comfortable merging it.
Comment #18
kristen polUnassigning from me for now as I'm going to be on vacation for awhile and not sure when I could test this.
Comment #19
vipin.mittal18Does anything block the stable release with PHP 8.2 deprecation fixes?
Comment #20
andre.bononAttaching patch to use in composer.json
Comment #22
berdirMerged, thanks for your contributions.
Again, try to limit changes to what is actually required in an issue, that makes it far easier to review and get committed.