Page MenuHomePhorge

Add missing variable names to PHPDoc @param of methods
ClosedPublic

Authored by aklapper on Aug 23 2024, 10:56.
Tags
None
Referenced Files
F4016592: D25799.1746649386.diff
Tue, May 6, 20:23
F4011757: D25799.1746626597.diff
Tue, May 6, 14:03
F3976280: D25799.1746535412.diff
Mon, May 5, 12:43
F3797586: D25799.1745929910.diff
Mon, Apr 28, 12:31
F3764341: D25799.1745842671.diff
Sun, Apr 27, 12:17
F3763835: D25799.1745840472.diff
Sun, Apr 27, 11:41
F3754771: D25799.1745824353.diff
Sun, Apr 27, 07:12
F3750611: D25799.1745806958.diff
Sun, Apr 27, 02:22

Details

Summary

Add variable names ($varname in @param type $varname explanation) to PHPDoc method headers, for fun and profit.

Closes T15923

Test Plan
  • Read the method signatures and their corresponding PHPDoc headers at your fireplace
  • Still run ./bin/diviner generate without explosions (though it is very lenient anyway?)

Diff Detail

Repository
rARC Arcanist
Branch
phpDocParamVarnames
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 1558
Build 1558: arc lint + arc unit

Unit TestsFailed

TimeTest
687 msArcanistBundleTestCase::testGitRepository
EXCEPTION (Exception): Expected patch and actual patch for 5dec8bf28557f078d1987c4e8cfb53d08310f522 differ. Wrote actual patch to '/var/www/html/phorge/arcanist/src/parser/__tests__/patches//5dec8bf28557f078d1987c4e8cfb53d08310f522.gitpatch.real'. #0 /var/www/html/phorge/arcanist/src/parser/__tests__/ArcanistBundleTestCase.php(85): ArcanistBundleTestCase->runGitRepositoryTests(Object(PhutilDirectoryFixture)) #1 /var/www/html/phorge/arcanist/src/unit/engine/phutil/PhutilTestCase.php(639): ArcanistBundleTestCase->testGitRepository()
97 msArcanistXMLLinterTestCase::testLinter
Lint emitted an unexpected set of messages for file "languages-6.lint-test". MISSING MESSAGES Message with severity "error" at "4:1" (XML5)
78 msAbstractDirectedGraphTestCase::testCyclicGraph
1 assertion(s) passed.
91 msAbstractDirectedGraphTestCase::testEdgeLoadFailure
1 assertion(s) passed.
79 msAbstractDirectedGraphTestCase::testNonTreeGraph
1 assertion(s) passed.
View Full Test Results (2 Failed · 344 Passed · 32 Skipped)

Event Timeline

This revision is now accepted and ready to land.Aug 23 2024, 13:32

@valerio.bozzolan Thanks, this unblocks a few more things on my list. I admit that I have not looked into the unit test failure here and I assume you understand it and that it is fine to merge this patch. :)

This revision was landed with ongoing or failed builds.Aug 23 2024, 16:52
This revision was automatically updated to reflect the committed changes.