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
F3353640: D25799.1743840014.diff
Fri, Apr 4, 08:00
F3349505: D25799.1743756138.diff
Thu, Apr 3, 08:42
F3338634: D25799.1743607529.diff
Tue, Apr 1, 15:25
F3336394: D25799.1743573442.diff
Tue, Apr 1, 05:57
F3331267: D25799.1743504529.diff
Mon, Mar 31, 10:48
F3330616: D25799.1743491727.diff
Mon, Mar 31, 07:15
F3327880: D25799.1743447267.diff
Sun, Mar 30, 18:54
F3327502: D25799.1743440336.diff
Sun, Mar 30, 16:58

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.