mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
1c85d151a6
commit
f670eb4980
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user