- Issue created by @saltednut
- @saltednut opened merge request.
- ๐บ๐ธUnited States saltednut Chicago
As a followup, there is also PHPStan issue that we found but it'll require either rewriting a function or just renaming it in the sub-theme when one is generated.
PHP Fatal error: Cannot redeclare _is_page_link_visible() (previously declared in /Users/myuser/Work/client/web/themes/contrib/governor/governor.theme:55) in /Users/myuser/Work/client/web/themes/custom/client/client.theme on line 70
The workaround, for now, is to rename the global function inside client.theme - but this could be fixed permanently perhaps if a service was provided by the base theme. If needed, I can file another issue for that.
- ๐ฎ๐ณIndia Indranil Roy kolkata
Hey @saltednut, I have added the patch please verify it.
- Status changed to Needs review
about 1 year ago 7:39am 28 November 2023 - ๐บ๐ธUnited States saltednut Chicago
Thanks @Indranil Roy, there is a merge request pending so we may not need a patch?
- Status changed to RTBC
11 months ago 5:29am 28 February 2024 - ๐บ๐ธUnited States kurttrowbridge
Hello! I tested this, first confirming that I saw the PHPCS errors mentioned when the patch was not yet applied. After applying the MR as a patch, the PHPCS errors are no longer present. Marking RTBC as a result.
(That said, I should note that line 60 in the
.theme
fileโthe comment starting with "Calculate the minimum and maximum"โwarns me, both before and after, that it's lengthier than the 80-character limit in Drupal's standards. Not sure why it doesn't appear in your testing, so I didn't flip back to Needs Work in case it's just something I'm doing differently on my end.)