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.parseErroroccurrences 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
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
Comment #2
mallezieComment #4
smustgrave commentedHello @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
Comment #5
mstrelan commentedThe MR looks good but the proposed resolution doesn't match the changes. Can we update the IS? Otherwise RTBC from me.
Comment #6
mallezieComment #7
mallezieComment #8
mallezie@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.
Comment #9
smustgrave commentedNope you are scoping perfectly. We just are still adjusting to this new era where issues are coming in at such a rapid pace now.
Comment #10
mallezieComment #11
mstrelan commentedLeft one suggestion. Leaving status as I might be wrong about this.
Comment #12
mstrelan commentedComment #13
mallezieComment #14
mstrelan commentedNice work