Problem/Motivation
Part of #3404246: [META] Fix strict type errors detected by phpstan.
By correcting 11 incorrect documented types we resolve 14 detected issues.
Steps to reproduce
Add checkFunctionArgumentTypes: true to the parameters section of phpstan.neon.dist
Run phpstan:
$ ./vendor/bin/phpstan analyse -c core/phpstan.neon.dist --error-format=raw
Compare 11.x to this branch
Proposed resolution
Fix doc types to resolve the attached errors
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| phpdoc-fix-part3.txt | 3.08 KB | mstrelan |
Issue fork drupal-3554676
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:
- 3554676-phpdoc-part3
changes, plain diff MR !13598
Comments
Comment #3
mstrelan commentedComment #4
smustgrave commentedbefore adding more of these should we see if part 1 gets in/accepted?
Comment #5
smustgrave commentedPer our slack conversation comment updates would be out of scope. Reviewing the changes here and they seem fine to me.
Comment #6
quietone commentedComment #7
mstrelan commentedReverted
UpdatePathTestTrait::runUpdatesand opened follow up: #3556879: Remove $update_url param from \Drupal\Tests\UpdatePathTestTrait::runUpdatesComment #8
smustgrave commentedFeedback for this one appears addressed.
Comment #11
quietone commentedCommitted 8127fb7 and pushed to 11.x and cherry-picked to 11.3.x.
Thanks!