Closed (fixed)
Project:
Page Manager
Version:
8.x-4.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2022 at 12:57 UTC
Updated:
24 Apr 2026 at 15:20 UTC
Jump to comment: Most recent
Just a minor code fix:
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Form!FormBase.php... doesn't contain a method "validatePath()", so I guess the inheritDoc is wrong?
It's just a custom helper function?
Check, if my assumption is correct and fix phpdoc.
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 #3
anybodyTotally minor ;) We just discussed your code as we needed something similar in homebox module, so I found that.
Written in Gitlab IDE, so please check carefully.
Comment #4
anybodyPS: If not used outside, perhaps change to "protected"? I didn't check if it can and should be used outside as helper function.
Comment #7
bluegeek9 commentedThe tests are failing unrelated to this change. The phpDoc is an improvement. FormBase does not provide a validatePath method to inherit the doc from.
Comment #9
joelpittetThank you both, merged.
Comment #12
liam morlandThis commit added trailing whitespace to line 199, leading to the phpcs check failing. Would you like me to make a merge request for fixing it?
Comment #13
joelpittetI assumed there lots of lint errors because we weren’t failing on them. Could you create a follow up to fail on linters and fix it there @liam Morland?
Comment #14
anybodySorry if I did the mistake and didn't see it.
Comment #15
liam morland#3584169: Fix issues raised by phpcs
It would have raised a warning for phpcs. In the follow-up, I set it to fail instead of warn on phpcs issues.