Correct declaration of variadic $args to mixed

Declaring as array confuses static analyzers, specifically phan, which
throws PhanTypeMismatchArgument for every invocation of
Injectable::create(). Correcting this declaration in the doc block
prevents all those false positives.
This commit is contained in:
Fred Condo 2022-06-09 11:52:04 -07:00
parent 1c85d151a6
commit f670eb4980
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ trait Injectable
* $list = DataList::create(SiteTree::class);
* $list = SiteTree::get();
*
* @param array $args
* @param mixed $args
* @return static
*/
public static function create(...$args)