Skip to content

Commit

Permalink
Make method IceBomb->getNetworkTypeId() non-static
Browse files Browse the repository at this point in the history
  • Loading branch information
zSALLAZAR authored and dktapps committed Nov 24, 2024
1 parent ec9726d commit 88c73f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity/projectile/IceBomb.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
use const PHP_INT_MAX;

class IceBomb extends Throwable{
public static function getNetworkTypeId() : string{ return EntityIds::ICE_BOMB; }
public function getNetworkTypeId() : string{ return EntityIds::ICE_BOMB; }

Check failure on line 40 in src/entity/projectile/IceBomb.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 / PHPStan analysis

Non-static method pocketmine\entity\projectile\IceBomb::getNetworkTypeId() overrides static method pocketmine\entity\Entity::getNetworkTypeId().

Check failure on line 40 in src/entity/projectile/IceBomb.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 / PHPStan analysis

Non-static method pocketmine\entity\projectile\IceBomb::getNetworkTypeId() overrides static method pocketmine\entity\Entity::getNetworkTypeId().

Check failure on line 40 in src/entity/projectile/IceBomb.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 / PHPStan analysis

Non-static method pocketmine\entity\projectile\IceBomb::getNetworkTypeId() overrides static method pocketmine\entity\Entity::getNetworkTypeId().

public function getResultDamage() : int{
return -1;
Expand Down

0 comments on commit 88c73f8

Please sign in to comment.