- Merge request !535Issue #2924782: Missing @var annotation for arrays that provide default values β (Closed) created by spokje
- Merge request !3689Issue #2924782: Fix remaining VariableComment.MissingVar annotation β (Open) created by quietone
- π³πΏNew Zealand quietone
Implementing sniffs are not bugs, they are tasks.
The failing test is not related to these changes, I am retesting.
- Status changed to Needs review
3 months ago 8:28am 11 August 2024 - π³πΏNew Zealand quietone
Changing the scope to make the change set smaller and easier to review.
- Status changed to RTBC
3 months ago 6:12pm 11 August 2024 - πΊπΈUnited States smustgrave
Reviewed the updates and changes appear correct.
- Status changed to Needs work
3 months ago 5:23pm 22 August 2024 - π³πΏNew Zealand quietone
quietone β changed the visibility of the branch 2924782-missing-var-annotation to hidden.
- Status changed to Needs review
3 months ago 1:17am 23 August 2024 - Status changed to RTBC
3 months ago 12:06pm 23 August 2024 - π³πΏNew Zealand quietone
Rebased and changed the instance in \Drupal\FunctionalTests\Update\UpdatePathTestBase to an {@inheritdoc}.
- First commit to issue fork.
- π¬π§United Kingdom longwave UK
MR has a merge conflict and a question about the change to phpcs.xml.dist.
Also, the release note snippet in the IS seems wrong, as we are enabling that in the parent issue - not here.
- π³πΏNew Zealand quietone
Rebased and had to fix mistakes so setting to NR.
- π¬π§United Kingdom alexpott πͺπΊπ
I think we should be changing phpcs.xml to enable the rule no? Also I think removing the @var when there is a default value is really odd.
- π³πΏNew Zealand quietone
@alexpott, thanks for the review.
Unfortunately, the scoping on this is unusual and the sniff can't be modified to cover this set of changes. However, I did enable the sniff for some file patterns. In the parent issue the remaining 50 errors in 32 files can be fixed and the sniff enable for all files.
- Status changed to Needs work
8 days ago 10:27am 8 November 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- π¬π§United Kingdom alexpott πͺπΊπ
This change confuses me because it's removing @var from stuff... also if I only apply the changes to the phpcs.xml.dist and run PHPCS the other error that's found is:
> phpcs --standard=core/phpcs.xml.dist --parallel="$( (nproc || sysctl -n hw.logicalcpu || echo 4) 2>/dev/null)" -- 'core' FILE: /Volumes/dev/drupal/core/modules/block/tests/src/Kernel/NewDefaultThemeBlocksTest.php ------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------- 37 | ERROR | Missing @var tag in member variable comment ------------------------------------------------------------------------------------------- Time: 26.72 secs; Memory: 12MB
So the rule changes are not covering the changes being made here.