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
F3318184: D25799.1743275748.diff
Fri, Mar 28, 19:15
F3317000: D25799.1743256563.diff
Fri, Mar 28, 13:56
F3310231: D25799.1743193299.diff
Thu, Mar 27, 20:21
F3308555: D25799.1743171339.diff
Thu, Mar 27, 14:15
F3307743: D25799.1743151408.diff
Thu, Mar 27, 08:43
F3306865: D25799.1743133754.diff
Thu, Mar 27, 03:49
F3306197: D25799.1743125483.diff
Thu, Mar 27, 01:31
F3305561: D25799.1743116350.diff
Wed, Mar 26, 22:59

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.