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
F2994682: D25799.1740324910.diff
Sat, Feb 22, 15:35
F2992583: D25799.1740230572.diff
Fri, Feb 21, 13:22
F2946560: D25799.1738400891.diff
Fri, Jan 31, 09:08
F2939030: D25799.1738026964.diff
Mon, Jan 27, 01:16
F2939029: D25799.1738026963.diff
Mon, Jan 27, 01:16
F2939025: D25799.1738026956.diff
Mon, Jan 27, 01:15
F2938958: D25799.1738026828.diff
Mon, Jan 27, 01:13
F2938957: D25799.1738026827.diff
Mon, Jan 27, 01:13

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.