From 83494d84efbafe38d89a9737f4a52974b35b03fe Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Thu, 5 Jun 2025 14:13:58 +0200 Subject: [PATCH] PHPDoc: Replace non-existing return type tuple with array Summary: `tuple` 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/D26066 --- .../differential/parser/DifferentialChangesetParser.php | 2 +- src/infrastructure/daemon/workers/PhabricatorWorker.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php index acba7c9290..2397f2b2a0 100644 --- a/src/applications/differential/parser/DifferentialChangesetParser.php +++ b/src/applications/differential/parser/DifferentialChangesetParser.php @@ -1301,7 +1301,7 @@ final class DifferentialChangesetParser extends Phobject { * * @param string $spec Range specification, indicating the range of the diff * that should be rendered. - * @return tuple List of suitable for passing to + * @return array Tuple of suitable for passing to * @{method:render}. */ public static function parseRangeSpecification($spec) { diff --git a/src/infrastructure/daemon/workers/PhabricatorWorker.php b/src/infrastructure/daemon/workers/PhabricatorWorker.php index 7efe9abbbd..e06b0dc560 100644 --- a/src/infrastructure/daemon/workers/PhabricatorWorker.php +++ b/src/infrastructure/daemon/workers/PhabricatorWorker.php @@ -248,7 +248,7 @@ abstract class PhabricatorWorker extends Phobject { /** * Get tasks queued as followups by @{method:queueTask}. * - * @return list> Queued task specifications. + * @return list> Queued task specifications. */ final protected function getQueuedTasks() { return $this->queuedTasks;