Skip to content

Commit

Permalink
fix phpstan finally 🧍‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
DuoIncure committed Jul 31, 2023
1 parent 91b611a commit 74b6325
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ public function __construct(SkyBlocksPM $plugin){

public function prepare(): void {
$this->setPermission('skyblockspm.command');
$this->registerSubCommand(new AcceptSubCommand($this->plugin, 'accept', 'Accept the incoming invite to a SkyBlock Island'));
$this->registerSubCommand(new ChatSubCommand($this->plugin, 'chat', 'Chat with your SkyBlock Island members'));
$this->registerSubCommand(new CreateSubCommand($this->plugin, 'create', 'Create your own SkyBlock Island'));
$this->registerSubCommand(new DeleteSubCommand($this->plugin, 'delete', 'Delete a users SkyBlock Island', ['disband']));
$this->registerSubCommand(new KickSubCommand($this->plugin, 'kick', 'Kick a member from your SkyBlock Island'));
$this->registerSubCommand(new LeaveSubCommand($this->plugin, 'leave', 'Leave your current SkyBlock Island'));
$this->registerSubCommand(new SettingsSubCommand($this->plugin, 'settings', 'Edit your SkyBlock Island settings'));
$this->registerSubCommand(new SetWorldCommand($this->plugin, 'setworld', 'Sets the current world as the SkyBlock World which will be copied to newer worlds upon Island creation'));
$this->registerSubCommand(new TpSubCommand($this->plugin, 'tp', 'Teleport to a users SkyBlock Island', ['go', 'home']));
$this->registerSubCommand(new InviteSubCommand($this->plugin, 'invite', 'Invites the player to your SkyBlock Island'));
$this->registerSubCommand(new VisitSubCommand($this->plugin, 'visit', 'Visit a players SkyBlock Island'));
$this->registerSubCommand(new AcceptSubCommand($this->getOwningPlugin(), 'accept', 'Accept the incoming invite to a SkyBlock Island'));

Check failure on line 31 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\AcceptSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new ChatSubCommand($this->getOwningPlugin(), 'chat', 'Chat with your SkyBlock Island members'));

Check failure on line 32 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\ChatSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new CreateSubCommand($this->getOwningPlugin(), 'create', 'Create your own SkyBlock Island'));

Check failure on line 33 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\CreateSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new DeleteSubCommand($this->getOwningPlugin(), 'delete', 'Delete a users SkyBlock Island', ['disband']));

Check failure on line 34 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\DeleteSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new KickSubCommand($this->getOwningPlugin(), 'kick', 'Kick a member from your SkyBlock Island'));

Check failure on line 35 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\KickSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new LeaveSubCommand($this->getOwningPlugin(), 'leave', 'Leave your current SkyBlock Island'));

Check failure on line 36 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\LeaveSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new SettingsSubCommand($this->getOwningPlugin(), 'settings', 'Edit your SkyBlock Island settings'));

Check failure on line 37 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\SettingsSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new SetWorldCommand($this->getOwningPlugin(), 'setworld', 'Sets the current world as the SkyBlock World which will be copied to newer worlds upon Island creation'));

Check failure on line 38 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\SetWorldCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new TpSubCommand($this->getOwningPlugin(), 'tp', 'Teleport to a users SkyBlock Island', ['go', 'home']));

Check failure on line 39 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\TpSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new InviteSubCommand($this->getOwningPlugin(), 'invite', 'Invites the player to your SkyBlock Island'));

Check failure on line 40 in src/Vecnavium/SkyBlocksPM/commands/SkyBlockCommand.php

View workflow job for this annotation

GitHub Actions / PHPStan analysis (8.1)

Parameter #1 $plugin of class Vecnavium\SkyBlocksPM\commands\subcommands\InviteSubCommand constructor expects pocketmine\plugin\PluginBase, pocketmine\plugin\Plugin given.
$this->registerSubCommand(new VisitSubCommand($this->getOwningPlugin(), 'visit', 'Visit a players SkyBlock Island'));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function canParse(string $testString, CommandSender $sender): bool {
* @param CommandSender $sender
* @return mixed
*/
public function parse(string $argument, CommandSender $sender): string {
public function parse(string $argument, CommandSender $sender): mixed {
return $argument;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/phpstan/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": {
"url": "https://github.com/Paroxity/Commando.git",
"type": "git",
"reference": "master"
"reference": "7a018dce089f9cc59183852786a596be00068cb3"
},
"autoload": {
"classmap": ["src/"]
Expand Down

0 comments on commit 74b6325

Please sign in to comment.