Issue summary generated with the help of an LLM.

Problem/Motivation

PHPStan currently flags several phpDoc.parseError errors across Drupal core where there is an error in phpDoc syntax.

Those are candidates for easy fixes, and also remove some related issues from the baseline automatically.

Proposed resolution

Fix the phpdoc syntax

Remaining tasks

  • Fix all phpDoc.parseError occurrences in core.
  • Regenerate core/.phpstan-baseline.php.
  • Verify PHPStan passes in GitLab CI.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork drupal-3642160

Command icon Show commands

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

mallezie created an issue. See original summary.

mallezie’s picture

Status: Active » Needs review

smustgrave’s picture

Hello @mallezie thank you for opening all of these but can I make a suggestion. Instead of dropping a dozen or so issues in the queue maybe just focus on a few at a time? All the AI issues are overwhelming the queues and don’t want things to get gridlocked by sheer numbers.

Hope you consider. Thanks again for contributing. Glad to see the lvl3 getting addressed

mstrelan’s picture

Status: Needs review » Needs work

The MR looks good but the proposed resolution doesn't match the changes. Can we update the IS? Otherwise RTBC from me.

mallezie’s picture

Issue summary: View changes
mallezie’s picture

Status: Needs work » Needs review
mallezie’s picture

@smustgrave thanks for the suggestion, will keep it in mind.

I try to scope them very clear, so they can go through easier.

I firstly focused on the very simple ones, but I'll vary that with more complex ones to not have that many at once.

smustgrave’s picture

Nope you are scoping perfectly. We just are still adjusting to this new era where issues are coming in at such a rapid pace now.

mallezie’s picture

mstrelan’s picture

Left one suggestion. Leaving status as I might be wrong about this.

mstrelan’s picture

Status: Needs review » Needs work
mallezie’s picture

Status: Needs work » Needs review
mstrelan’s picture

Status: Needs review » Reviewed & tested by the community

Nice work