Mace Implementation #9484
main.yml
on: pull_request
Code Style checks
31s
ShellCheck
4s
Matrix: all-php-versions
Annotations
34 errors
PHP 8.3 / PHPUnit tests
Process completed with exit code 255.
|
PHP 8.1 / PHPUnit tests
Process completed with exit code 255.
|
PHP 8.2 / PHPUnit tests
Process completed with exit code 255.
|
PHP 8.3 / Generated Code consistency checks
Process completed with exit code 255.
|
PHP 8.2 / Generated Code consistency checks
Process completed with exit code 255.
|
PHP 8.2 / Integration tests
Process completed with exit code 1.
|
PHP 8.3 / Integration tests
Process completed with exit code 1.
|
PHP 8.1 / Generated Code consistency checks
Process completed with exit code 255.
|
PHP 8.1 / Integration tests
Process completed with exit code 1.
|
Code Style checks
Process completed with exit code 8.
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L66
Method pocketmine\item\Mace::getDamager() is unused.
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L70
Method pocketmine\item\Mace::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L70
Parameter #1 $demager (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().
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L70
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().
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L70
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.
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L70
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
|
PHP 8.2 / PHPStan analysis:
src/item/Mace.php#L76
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
|
PHP 8.2 / PHPStan analysis
Process completed with exit code 1.
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L66
Method pocketmine\item\Mace::getDamager() is unused.
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L70
Method pocketmine\item\Mace::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L70
Parameter #1 $demager (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().
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L70
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().
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L70
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.
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L70
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
|
PHP 8.3 / PHPStan analysis:
src/item/Mace.php#L76
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
|
PHP 8.3 / PHPStan analysis
Process completed with exit code 1.
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L66
Method pocketmine\item\Mace::getDamager() is unused.
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L70
Method pocketmine\item\Mace::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L70
Parameter #1 $demager (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().
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L70
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().
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L70
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.
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L70
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
|
PHP 8.1 / PHPStan analysis:
src/item/Mace.php#L76
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
|
PHP 8.1 / PHPStan analysis
Process completed with exit code 1.
|