PHPDoc: Replace non-existing return type const with string(|int)

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.

Test Plan: Read docs; run static code analysis.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D26068
This commit is contained in:
Andre Klapper 2025-06-05 14:21:17 +02:00
parent 83494d84ef
commit 520db4e188
3 changed files with 4 additions and 3 deletions

View file

@ -431,7 +431,7 @@ abstract class PhabricatorModularTransactionType
* @param object $object Object being edited. * @param object $object Object being edited.
* @param PhabricatorApplicationTransaction $xaction Transaction being * @param PhabricatorApplicationTransaction $xaction Transaction being
* applied. * applied.
* @return null|const|list<const> A capability constant (or list of * @return null|string|list<string> A capability constant (or list of
* capability constants) which the actor must have on the object. You can * capability constants) which the actor must have on the object. You can
* return `null` as a shorthand for "no capabilities are required". * return `null` as a shorthand for "no capabilities are required".
*/ */

View file

@ -1554,7 +1554,7 @@ abstract class PhabricatorCustomField extends Phobject {
/** /**
* Get the available conditions for this field in Herald. * Get the available conditions for this field in Herald.
* *
* @return list<const> List of Herald condition constants. * @return list<string> List of Herald condition constants.
* @task herald * @task herald
*/ */
public function getHeraldFieldConditions() { public function getHeraldFieldConditions() {

View file

@ -354,7 +354,8 @@ final class PhabricatorEdgeEditor extends Phobject {
* Get a list of all edge types which are being added, and which we should * Get a list of all edge types which are being added, and which we should
* prevent cycles on. * prevent cycles on.
* *
* @return list<const> List of edge types which should have cycles prevented. * @return list<int|string> List of edge type constants which should have
* cycles prevented.
* @task cycle * @task cycle
*/ */
private function getPreventCyclesEdgeTypes() { private function getPreventCyclesEdgeTypes() {