- Issue created by @quietone
- Status changed to Needs review
about 1 year ago 1:03pm 13 October 2023 - last update
about 1 year ago 30,397 pass - Status changed to RTBC
about 1 year ago 4:07pm 13 October 2023 - 🇺🇸United States smustgrave
Seems simple enough
* node and taxonomy term templates based on the user being logged in. + * * @code
May be out of scope but I think it reads better now.
- last update
about 1 year ago 30,397 pass 35:23 32:03 Running- last update
about 1 year ago 30,420 pass - last update
about 1 year ago 30,426 pass - last update
about 1 year ago 30,427 pass - last update
about 1 year ago 30,437 pass - last update
about 1 year ago 30,456 pass - last update
about 1 year ago 30,464 pass - last update
about 1 year ago 30,483 pass - last update
about 1 year ago 30,485 pass 35:21 31:31 Running- last update
about 1 year ago 30,488 pass - last update
about 1 year ago 30,511 pass - 🇺🇸United States xjm
This looks good, thanks.
+++ b/core/lib/Drupal/Core/Render/theme.api.php @@ -694,8 +695,9 @@ function hook_theme_suggestions_HOOK(array $variables) { + * @param array &$suggestions
I was going to push back that we don't put the ampersand on parameter documentation, but it looks like we do in a few places. (Nowhere near the number of places we use pass-by-reference.) There's a followup in there to standardize that, but out of scope for this issue.
I tried to commit this, but am getting a weird error from PHPStan:
Running PHPStan on changed files. [ERROR] No files found to analyse. PHPStan: failed
- Status changed to Needs work
about 1 year ago 12:13am 11 November 2023 The Needs Review Queue Bot → tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request → . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- Status changed to RTBC
about 1 year ago 12:21am 11 November 2023 - 🇺🇸United States xjm
Yes yes, thanks bot. The RTBC is fine so long as I can figure out what's happening with PHPStan. 😂 I don't want to skip commit checks without knowing why it's failing.
- 🇺🇸United States xjm
Per @quietone:
It seems to occur when the file name is like "api.php" and only 1 file is changed.
Looks like a phpstan problem when a single file is to be scanned. Using phpstan inside ddev it fails with any one api.php file but if another file is on the command line it works. It does successfully find a single file when it is theme.ap.php or theme.a.php.
And adding api.php to the fileExtensions had no effect.Since QA passed, given that info, I think it's safe to commit this with
--no-commit-check
for now. That said, we should file a core issue for this since it seems like a bug in the local commit check script. - Status changed to Fixed
about 1 year ago 1:11am 11 November 2023 - 🇺🇸United States xjm
Committed to 11.x, 10.2.x, and 10.1.x as a backportable API documentation fix. Thanks!
- 🇳🇿New Zealand quietone
Follow up made, 🐛 phpstan fails for a single file ending with 'api.php' Active
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 7:25am 1 December 2023 - 🇳🇿New Zealand quietone
Made the followup in Coding Standards project. #3405434: Should the '&' be included in @param for variables passed by reference →