page_manager_ui/src/Wizard/RouteParameters.php causes the following PHP fatal error when interpreted:
Fatal error: Declaration of Drupal\page_manager_ui\Wizard\RouteParameters::getOperations() must be compatible with Drupal\ctools\Wizard\FormWizardInterface::getOperations($cached_values) in /var/www/docroot/modules/contrib/page_manager/page_manager_ui/src/Wizard/RouteParameters.php on line 86
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | page_manager-remove_unused_class_wizard_routeparameters-3039249-9.patch | 2.69 KB | manuel.adan |
| #7 | page_manager-3039249-6.patch | 2.07 KB | traviscarden |
Comments
Comment #2
manuel.adanWhich version of ctools you have installed?
Comment #3
traviscarden commented@manuel.adan 8.x-3.2.
Comment #4
manuel.adanPlease, could you check if with ctools 3.0 the bug is still reproducible? If not, this would be a duplicate of #3033057: Page Manager currently not working with CTools 3.1+
Comment #5
traviscarden commentedYes, @manuel.adan, the bug is still reproducible with ctools 3.0.0. Here. This patch fixes the issue.
Comment #7
traviscarden commentedAll right. I can fix the coding standards issues, too. ¯\_(ツ)_/¯
Comment #9
manuel.adanWell, there are two referenced classes in this class that doesn't exist:
As far I can see, there are no references to this class (Drupal\page_manager_ui\Wizard\RouteParameters) in the rest of the module code. These three classes were added in the "wizard" branch but, according to the git graph, it was never merged into 8.x-4.x.
The RouteParameters was added alone in #2550879: Use CTools Wizard API to add/edit Pages (and move plugin UI using PluginWizardInterface) (commit 77871ad), without the ParameterAssignContextForm and ParameterSettingsForm.
In short, RouteParameters was added (by error) into 8.x-4.x branch, by it is not used at all, so I think we can safely simply remove it. The tests pass and everything seems to work well.
@TravisCarden, how did you found the reported issue? May be by static code checking?
Comment #10
traviscarden commentedYes, @manuel.adan. I found this scanning my docroot for deprecated code with with phpstan.
Comment #12
manuel.adan