Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
ipad54 committed Feb 11, 2025
1 parent 9e76cf7 commit a0b4a31
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/crafting/SmithingRecipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function getTemplate() : RecipeIngredient;

/**
* @param Item[] $inputs
* @phpstan-param list<Item> $inputs
*/
public function getResultFor(array $inputs) : ?Item;
}
1 change: 0 additions & 1 deletion src/crafting/SmithingTransformRecipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function getResult() : Item{

/**
* @param Item[] $inputs
* @phpstan-param list<Item> $inputs
*/
public function getResultFor(array $inputs) : ?Item{
foreach($inputs as $item){
Expand Down
1 change: 0 additions & 1 deletion src/crafting/SmithingTrimRecipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public function getTemplate() : RecipeIngredient{

/**
* @param Item[] $inputs
* @phpstan-param list<Item> $inputs
*/
public function getResultFor(array $inputs) : ?Item{
$input = $template = $addition = null;
Expand Down
1 change: 1 addition & 0 deletions src/data/bedrock/ArmorTrimMaterialTypeIdMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function toId(ArmorTrimMaterial $material) : string{

/**
* @return ArmorTrimMaterial[]
* @phpstan-return list<ArmorTrimMaterial>
*/
public function getAllMaterials() : array{
return array_values($this->idToMaterial);
Expand Down
2 changes: 2 additions & 0 deletions src/data/bedrock/ArmorTrimPatternTypeIdMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
namespace pocketmine\data\bedrock;

use pocketmine\data\bedrock\ArmorTrimPatternTypeIds as Ids;
use pocketmine\item\ArmorTrimMaterial;
use pocketmine\item\ArmorTrimPattern;
use pocketmine\item\Item;
use pocketmine\item\VanillaArmorTrimPatterns as Patterns;
Expand Down Expand Up @@ -100,6 +101,7 @@ public function toId(ArmorTrimPattern $pattern) : string{

/**
* @return ArmorTrimPattern[]
* @phpstan-return list<ArmorTrimPattern>
*/
public function getAllPatterns() : array{
return array_values($this->idToPattern);
Expand Down

0 comments on commit a0b4a31

Please sign in to comment.