Page MenuHomePhorge

PHPDoc: Replace non-existing return type const with string
ClosedPublic

Authored by aklapper on Mar 29 2025, 09:28.
Tags
None
Referenced Files
F4117708: D25932.1747000560.diff
Sat, May 10, 21:56
F4116898: D25932.1746975782.diff
Sat, May 10, 15:03
F4077550: D25932.1746889311.diff
Fri, May 9, 15:01
F4076508: D25932.1746875985.diff
Fri, May 9, 11:19
F3604491: D25932.1745205653.diff
Sun, Apr 20, 03:20
F3575611: D25932.1745006083.diff
Thu, Apr 17, 19:54
F3509955: D25932.1744803809.diff
Tue, Apr 15, 11:43
F3492178: D25932.1744784870.diff
Tue, Apr 15, 06:27

Details

Summary

const is not a valid type. See https://docs.phpdoc.org/guide/references/phpdoc/types.html and https://docs.phpdoc.org/guide/references/phpdoc/tags/return.html.
Thus return string and get 82 less errors reported by PHPStan.

Test Plan

Read docs; run static code analysis.

Diff Detail

Repository
rP Phorge
Branch
phpDocsReturnConst (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1822
Build 1822: arc lint + arc unit