Page MenuHomePhorge

PHPDoc: Replace "@return this" with "@return $this"
ClosedPublic

Authored by aklapper on Sep 5 2024, 15:21.

Details

Summary

Per https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md the valid keyword is $this.
Thus replace this to make output of static code analysis slightly less noisy.

Test Plan

Read the docs.

Diff Detail

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

Unit TestsFailed

TimeTest
678 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()
99 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)
75 msAbstractDirectedGraphTestCase::testCyclicGraph
1 assertion(s) passed.
76 msAbstractDirectedGraphTestCase::testEdgeLoadFailure
1 assertion(s) passed.
75 msAbstractDirectedGraphTestCase::testNonTreeGraph
1 assertion(s) passed.
View Full Test Results (2 Failed · 284 Passed · 32 Skipped)

Event Timeline

aklapper requested review of this revision.Sep 5 2024, 15:21

(In general thanks and please do whatever needed change in PHPDoc but let's reduce the commits on single files for different PHPDoc changes; so if you have lot of warnings on a single file, just do them all thanksl

This revision is now accepted and ready to land.Sep 6 2024, 10:06
This revision was landed with ongoing or failed builds.Sep 6 2024, 11:01
This revision was automatically updated to reflect the committed changes.