Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2021 at 06:14 UTC
Updated:
2 Jan 2022 at 07:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tr commentedThe one that shows up in the initial tests is:
Fatal error: Declaration of Drupal\rules\Routing\RulesUiRouteSubscriber::getSubscribedEvents() must be compatible with Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents(): array in /var/www/html/modules/contrib/rules/src/Routing/RulesUiRouteSubscriber.php on line 47There are 56 test fails because of this.
Here's a patch to fix that. But since the tests stop when they encounter an error, chances are that more errors like this will show up when this is fixed and more of the test code is able to run.
As mentioned in the change record, this change is backwards compatible with D9.
Comment #3
tr commentedComment #4
tr commentedWell that fixed a lot of the errors, but as expected now that the test get past the point they used to fail, they encounter new problems.
There are now 20 test fails. Most of these new problems look like:
This error is mentioned in the Change record: Usage of symfony-cmf/routing dependency deprecated The fix for this is available starting in Drupal 9.1, so we are safe to add this to Rules as the lowest supported version of core is now D9.2.
New patch fixes this and the problem from #2.
Comment #6
tr commentedI've committed the fixes separately because I want the commit messages to reflect the problem, and we have two distinct problems here.
D10 tests now run green, and I will turn on weekly D10 testing in DrupalCI.