- Issue created by @vishalkhode
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
almost 2 years ago Not currently mergeable. - @rajeshreeputra opened merge request.
- First commit to issue fork.
- last update
almost 2 years ago 261 pass - 🇬🇧United Kingdom jonathan1055
Thanks for this. Can you run the tests at PHP8.2 to show that this fixes the warning.
- Status changed to Needs work
almost 2 years ago 5:12pm 5 May 2023 - 🇮🇳India vishalkhode
Hi @Rajeshreeputra
Looks like there are more deprecations. Ex:PHP Deprecated: a:5:{s:11:"deprecation";s:111:"Creation of dynamic property Drupal\Tests\scheduler\Functional\SchedulerViewsAccessTest::$webUser is deprecated";s:5:"class";s:58:"Drupal\Tests\scheduler\Functional\SchedulerViewsAccessTest";s:6:"method";s:28:"testViewScheduledContentUser";s:15:"triggering_file";s:123:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/scheduler/tests/src/Functional/SchedulerViewsAccessTest.php";s:11:"files_stack";a:8:{i:0;s:123:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/scheduler/tests/src/Functional/SchedulerViewsAccessTest.php";i:1;s:123:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/scheduler/tests/src/Functional/SchedulerViewsAccessTest.php";i:2;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:3;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:4;s:91:"/home/runner/work/acquia_cms/orca-build/vendor/phpunit/phpunit/src/Framework/TestResult.php";i:5;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:6;s:19:"Standard input code";i:7;s:19:"Standard input code";}} in /home/runner/work/acquia_cms/orca-build/vendor/symfony/phpunit-bridge/Legacy/SymfonyTestsListenerTrait.php on line 284 PHP Deprecated: a:5:{s:11:"deprecation";s:119:"Creation of dynamic property Drupal\Tests\scheduler\Functional\SchedulerViewsAccessTest::$schedulerViewer is deprecated";s:5:"class";s:58:"Drupal\Tests\scheduler\Functional\SchedulerViewsAccessTest";s:6:"method";s:28:"testViewScheduledContentUser";s:15:"triggering_file";s:123:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/scheduler/tests/src/Functional/SchedulerViewsAccessTest.php";s:11:"files_stack";a:8:{i:0;s:123:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/scheduler/tests/src/Functional/SchedulerViewsAccessTest.php";i:1;s:123:"/home/runner/work/acquia_cms/orca-build/docroot/modules/contrib/scheduler/tests/src/Functional/SchedulerViewsAccessTest.php";i:2;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:3;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:4;s:91:"/home/runner/work/acquia_cms/orca-build/vendor/phpunit/phpunit/src/Framework/TestResult.php";i:5;s:77:"/home/runner/work/acquia_cms/orca-build/docroot/sites/simpletest/TestCase.php";i:6;s:19:"Standard input code";i:7;s:19:"Standard input code";}} in /home/runner/work/acquia_cms/orca-build/vendor/symfony/phpunit-bridge/Legacy/SymfonyTestsListenerTrait.php on line 284
- last update
almost 2 years ago 261 pass - last update
almost 2 years ago 261 pass - last update
almost 2 years ago 255 pass, 1 fail - last update
almost 2 years ago 261 pass - last update
almost 2 years ago 255 pass, 1 fail 57:13 31:19 Running- last update
almost 2 years ago 223 pass, 3 fail - Status changed to Needs review
almost 2 years ago 8:11am 9 May 2023 - 🇮🇳India rajeshreeputra Pune
in devel module need to update the DevelGenerateRoutes file to fix below error.
8x: Creation of dynamic property Drupal\devel_generate\Routing\DevelGenerateRoutes::$DevelGenerateManager is deprecated 8x in SchedulerDevelGenerateTest::testDevelGenerate from Drupal\Tests\scheduler\Functional
include this code:
/** * The Devel Generate Plugin Manager. * * @var \Drupal\Component\Plugin\PluginManagerInterface */ protected $DevelGenerateManager;
- last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago Build Successful - last update
almost 2 years ago Build Successful - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago Composer require failure - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago Build Successful - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 191 pass, 3 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 229 pass - last update
almost 2 years ago 223 pass, 1 fail - last update
almost 2 years ago 229 pass - last update
almost 2 years ago 223 pass, 1 fail - last update
almost 2 years ago 229 pass - last update
almost 2 years ago 223 pass, 1 fail - last update
almost 2 years ago 229 pass - Assigned to ankitv18
- last update
almost 2 years ago 223 pass, 1 fail - 🇮🇳India rajeshreeputra Pune
The SchedulerDevelGenerateTest test is failing because of the devel(devel_generate) module. @jonathan1055 could you update the DevelGenerateRoutes file with below change.
/** * The Devel Generate Plugin Manager. * * @var \Drupal\Component\Plugin\PluginManagerInterface */ protected $DevelGenerateManager;
Above change fix below error and tests will be green.
8x: Creation of dynamic property Drupal\devel_generate\Routing\DevelGenerateRoutes::$DevelGenerateManager is deprecated 8x in SchedulerDevelGenerateTest::testDevelGenerate from Drupal\Tests\scheduler\Functional
include this code:
- 🇬🇧United Kingdom jonathan1055
@Rajeshreeputra The change you suggest is close but not exactly correct. However there is already a Devel Generate issue regarding this
https://gitlab.com/drupalspoons/devel/-/issues/468
Please do not cross-post requests for one module on another module's issue queue. It might be just a conincidence that I am maintainer of both. Use the Devel issue queue for Devel issues :-) -
jonathan1055 →
committed b6ff1894 on 2.x
Issue #3357836 by jonathan1055: Get devel:5.x-dev when running with PHP8...
-
jonathan1055 →
committed b6ff1894 on 2.x
- 🇬🇧United Kingdom jonathan1055
The fix to Devl 5.x dev has been commited, see https://gitlab.com/drupalspoons/devel/-/merge_requests/152
This is only in the -dev version but I have made a change to Scheduer's drupalci.yml to get Devel 5.x-dev when running with PHP version 8.2 (see commit above).So you can now rebase your MR and the DevelGenerate test should pass with PHP8.2
- last update
almost 2 years ago 229 pass - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 197 pass, 2 fail - last update
almost 2 years ago 229 pass - last update
almost 2 years ago 229 pass - last update
almost 2 years ago 229 pass - last update
almost 2 years ago 229 pass - Issue was unassigned.
- Status changed to RTBC
almost 2 years ago 5:10am 22 May 2023 - 🇮🇳India ankitv18
MR!85 applied cleanly and passing with stable and next version of Drupal with PHP 8.1 and 8.2, hence moving into RTBC.
- last update
almost 2 years ago 229 pass - 🇬🇧United Kingdom jonathan1055
Thanks, it's looking good.
Now that I have opted in Scheduler for GitLab-CI testing I have now triggered a pipeline test (currently only project maintainers can do this). It is running on php8.1 so I may update that to php8.2
- last update
almost 2 years ago 229 pass - last update
almost 2 years ago 229 pass - 🇬🇧United Kingdom jonathan1055
I have made a couple of improvements
- Instead of the if-block for user id, convert the entity type id from snake_case to lowerCamelCase and then match as before on the user name
- The routeCronForm property was only used in one test, so it is now created as a local variable there, no point in having a separate property
- last update
almost 2 years ago 229 pass -
jonathan1055 →
committed 0132623b on 2.x authored by
Rajeshreeputra →
Issue #3357836 by Rajeshreeputra, jonathan1055, vishalkhode, ankitv18:...
-
jonathan1055 →
committed 0132623b on 2.x authored by
Rajeshreeputra →
- 🇬🇧United Kingdom jonathan1055
Thank you Rajeshreeputra, vishalkhode and ankitv18. Committed to 2.x.
This should also be done in 8.x-1.x I think.
- last update
almost 2 years ago 77 pass - @jonathan1055 opened merge request.
- last update
almost 2 years ago CI aborted - last update
almost 2 years ago 27 fail - last update
almost 2 years ago 77 pass - last update
almost 2 years ago 61 pass, 6 fail - last update
almost 2 years ago 77 pass - last update
almost 2 years ago 65 pass, 4 fail - last update
almost 2 years ago 77 pass - last update
almost 2 years ago 77 pass - last update
almost 2 years ago 77 pass - last update
almost 2 years ago 77 pass -
jonathan1055 →
committed 094b1d00 on 8.x-1.x
Issue #3357836 by jonathan1055: PHP 8.2 compatibility
-
jonathan1055 →
committed 094b1d00 on 8.x-1.x
- Status changed to Fixed
almost 2 years ago 5:05pm 31 May 2023 - 🇬🇧United Kingdom jonathan1055
Now fixed in 8.x-1.x
Thank you to everyone above who helped on this. Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
almost 2 years ago 1:33pm 26 June 2023 - 🇮🇳India rajeshreeputra Pune
@jonathan1055 when can we expect release for the same.
- 🇬🇧United Kingdom jonathan1055
Hi Rajeshreeputra,
I have just committed the fix to the final 2.0 blocker 🐛 Don't run hook_modules_installed during config install Fixed and released Scheduler 2.0.0 →