PHPDoc: Correct syntax of variadic function params

Summary: PHPDoc standardized syntax for variadic function parameters in https://github.com/phpDocumentor/phpDocumentor/issues/629. Thus follow that syntax.

Test Plan:
* Check that Phorge docs still render as before: grep for `...` within src/applications/diviner, see that the only result writes and does not read
* Run `./bin/diviner generate --clean`, see that "Loading Objects" section on http://phorge.localhost/book/dev/class/LiskDAO/ looks the same before and after
* Run static code analysis, get no more parse errors which mention `...`

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/D25980
This commit is contained in:
Andre Klapper 2025-04-29 14:26:42 +03:00
parent ff6a998f23
commit 3f49ac5b48

View file

@ -469,7 +469,7 @@ abstract class LiskDAO extends Phobject
* The pattern and arguments are as per queryfx().
*
* @param string $pattern queryfx()-style SQL WHERE clause.
* @param ... Zero or more conversions.
* @param mixed $args,... Zero or more conversions.
* @return dict Dictionary of matching objects, keyed on ID.
*
* @task load
@ -490,7 +490,7 @@ abstract class LiskDAO extends Phobject
* result instead of a list.
*
* @param string $pattern queryfx()-style SQL WHERE clause.
* @param ... Zero or more conversions.
* @param mixed $args,... Zero or more conversions.
* @return object|null Matching object, or null if no object matches.
*
* @task load