Mace Implementation #3
Annotations
6 errors
Run PHPStan:
src/item/Mace.php#L66
Method pocketmine\item\Mace::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
|
Run PHPStan:
src/item/Mace.php#L66
Parameter #1 $damager (pocketmine\event\entity\EntityDamageByEntityEvent) of method pocketmine\item\Mace::onAttackEntity() is not contravariant with parameter #1 $victim (pocketmine\entity\Entity) of method pocketmine\item\Item::onAttackEntity().
|
Run PHPStan:
src/item/Mace.php#L66
Parameter #2 $victim (pocketmine\entity\Entity) of method pocketmine\item\Mace::onAttackEntity() is not contravariant with parameter #2 $returnedItems (array) of method pocketmine\item\Item::onAttackEntity().
|
Run PHPStan:
src/item/Mace.php#L66
Parameter #2 $victim of method pocketmine\item\Mace::onAttackEntity() is not passed by reference but parameter #2 $returnedItems of method pocketmine\item\Item::onAttackEntity() is passed by reference.
|
Run PHPStan:
src/item/Mace.php#L66
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
|
Run PHPStan
Process completed with exit code 1.
|
Loading