Problem/Motivation

- Some deprecation notices pop up with PHP 8.2
Deprecated function: Creation of dynamic property ... is deprecated

Also test fail on Drupal 10.1

Proposed resolution

- Attached MR fixes notices I came across
- also fixed CToolsViewsBasicViewBlockTest to use the starterkit_theme as 8.x-3.x doing
- fixed testing on D10.1 after #3061266: Prefix block machine name suggestions with the theme machine name

Issue fork ctools-3332913

Command icon 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

j-vee created an issue. See original summary.

rosk0’s picture

Issue tags: +PHP 8.2
rosk0’s picture

Version: 4.0.3 » 4.0.x-dev
Status: Needs review » Needs work

CToolsViewsBasicViewBlockTest uses removed in Drupal 10 classy theme - needs update.

rosk0’s picture

It's unclear to me why Composer decides to use laminas/laminas-feed 2.17.0 in Drupal 9 tests when 2.20.0 is available and compatible with PHP 8.2.

andypost’s picture

Status: Needs work » Needs review
StatusFileSize
new2.69 KB

Here's the same as MR patch but for PHP 8.1

andypost’s picture

Status: Needs review » Needs work
StatusFileSize
new621 bytes
new3.29 KB

One more patch to fix
17:04:06 PHP Deprecated: a:5:{s:11:"deprecation";s:104:"Creation of dynamic property Drupal\Tests\ctools\Functional\CToolsWizardTest::$dumpHeaders is deprecated";s:5:"class";s:47:"Drupal\Tests\ctools\Functional\CToolsWizardTest";s:6:"method";s:15:"testWizardSteps";s:15:"triggering_file";s:78:"/var/www/html/modules/contrib/ctools/tests/src/Functional/CToolsWizardTest.php";s:11:"files_stack";a:7:{i:0;s:78:"/var/www/html/modules/contrib/ctools/tests/src/Functional/CToolsWizardTest.php";i:1;s:43:"/var/www/html/sites/simpletest/TestCase.php";i:2;s:43:"/var/www/html/sites/simpletest/TestCase.php";i:3;s:65:"/var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php";i:4;s:43:"/var/www/html/sites/simpletest/TestCase.php";i:5;s:19:"Standard input code";i:6;s:19:"Standard input code";}} in /var/www/html/vendor/symfony/phpunit-bridge/Legacy/SymfonyTestsListenerTrait.php on line 284

andypost’s picture

Status: Needs work » Needs review
StatusFileSize
new578 bytes
new3.86 KB

Set theme to claro (fix #4) but test shows that variant getting wrong region list from theme

andypost’s picture

StatusFileSize
new10.08 KB
new13.38 KB

replace region name

andypost’s picture

Issue summary: View changes
Related issues: +#3061266: Prefix block machine name suggestions with the theme machine name

Now all tests passing on 9.5.x and 10.0/10.1

andypost’s picture

Issue summary: View changes
StatusFileSize
new5.36 KB

Patch for 8.x-3.x, MR is for 4.0.x

andypost’s picture

StatusFileSize
new2.72 KB
new8.25 KB

Fix last broken test for 8.x-3.x

andypost’s picture

Title: Fix PHP 8.2 deprecation notices » Fix PHP 8.2 deprecation notices and D10.1 compatibility
Issue summary: View changes

better title

andypost’s picture

Issue tags: +blocker

This is a blocker for panels everywhere compatibility with core 10.1 and PHP 8.2

rajeshreeputra’s picture

Status: Needs review » Reviewed & tested by the community

changes looks good.

japerry’s picture

Version: 4.0.x-dev » 8.x-3.x-dev
Status: Reviewed & tested by the community » Fixed

Fixed!

  • japerry committed add884df on 8.x-3.x authored by andypost
    Issue #3332913 by andypost: Fix PHP 8.2 deprecation notices and D10.1...
andypost’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

joseph.olstad’s picture

this should go into a release, one of these commits fixes the analyze command provided by upgrade_status used for upgrading modules to get them upgraded from D9 to D10.

andypost’s picture

joseph.olstad’s picture

the May 17th commits for the 3x branch, one of those.
There's something missing from 3.14 that is in 3.x-dev, possibly 3 commits I thought this was one of them.

3.15 should be tagged
3.x-dev fixes a bug where upgrade_status crashes on certain code scans . Upgrading to 3.x-dev of ctools fixes it after a cache rebuild. Would prefer 3.15