mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
Command: mark execute $args as being list<string>
This commit is contained in:
parent
90f0b85d2e
commit
59f6c85105
@ -80,6 +80,7 @@ abstract class Command{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string[] $args
|
* @param string[] $args
|
||||||
|
* @phpstan-param list<string> $args
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws CommandException
|
* @throws CommandException
|
||||||
|
@ -121,6 +121,7 @@ class FormattedCommandAlias extends Command{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string[] $args
|
* @param string[] $args
|
||||||
|
* @phpstan-param list<string> $args
|
||||||
*/
|
*/
|
||||||
private function buildCommand(string $formatString, array $args) : ?string{
|
private function buildCommand(string $formatString, array $args) : ?string{
|
||||||
$index = 0;
|
$index = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user