@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

PHPDoc: Replace invalid "obj" with "object"

Summary:
Avoid "has invalid return type obj" errors when running static code analysis (PHPStan).
See https://docs.phpdoc.org/guide/references/phpdoc/types.html

Test Plan: Run PHPStan before and after applying this change (and its corresponding Arcanist change), get 15 errors less.

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/D25952

+6 -6
+6 -6
src/infrastructure/storage/lisk/LiskDAO.php
··· 203 203 /** 204 204 * Build an empty object. 205 205 * 206 - * @return obj Empty object. 206 + * @return object Empty object. 207 207 */ 208 208 public function __construct() { 209 209 $id_key = $this->getIDKey(); ··· 429 429 * 430 430 * $dog = id(new Dog())->load($dog_id); 431 431 * 432 - * @param int $id Numeric ID identifying the object to load. 433 - * @return obj|null Identified object, or null if it does not exist. 432 + * @param int $id Numeric ID identifying the object to load. 433 + * @return object|null Identified object, or null if it does not exist. 434 434 * 435 435 * @task load 436 436 */ ··· 492 492 * query. See loadAllWhere(). This method is similar, but returns a single 493 493 * result instead of a list. 494 494 * 495 - * @param string $pattern queryfx()-style SQL WHERE clause. 496 - * @param ... Zero or more conversions. 497 - * @return obj|null Matching object, or null if no object matches. 495 + * @param string $pattern queryfx()-style SQL WHERE clause. 496 + * @param ... Zero or more conversions. 497 + * @return object|null Matching object, or null if no object matches. 498 498 * 499 499 * @task load 500 500 */