Mace Implementation #9479
Annotations
8 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 $demager (pocketmine\item\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:
src/item/Mace.php#L66
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
|
Run PHPStan:
src/item/Mace.php#L72
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
|
Run PHPStan
Process completed with exit code 1.
|
Loading