Skip to content

Mace Implementation #9483

Mace Implementation

Mace Implementation #9483

Triggered via pull request September 9, 2024 22:14
@KnosTxKnosTx
synchronize #6446
KnosTx:mace
Status Failure
Total duration 1m 44s
Artifacts

main.yml

on: pull_request
Code Style checks
29s
Code Style checks
ShellCheck
3s
ShellCheck
Matrix: all-php-versions
Fit to window
Zoom out
Zoom in

Annotations

40 errors
PHP 8.1 / PHPUnit tests
Process completed with exit code 255.
PHP 8.1 / Generated Code consistency checks
Process completed with exit code 255.
PHP 8.3 / 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.3 / PHPUnit tests
Process completed with exit code 255.
PHP 8.1 / Integration tests
Process completed with exit code 1.
PHP 8.2 / PHPUnit tests
Process completed with exit code 255.
Code Style checks
Process completed with exit code 8.
PHP 8.2 / Generated Code consistency checks
Process completed with exit code 255.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L66
Method pocketmine\item\Mace::getDemager() has invalid return type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L66
Method pocketmine\item\Mace::getDemager() is unused.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L67
Access to an undefined property pocketmine\item\Mace::$demager.
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\item\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#L70
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L76
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L66
Method pocketmine\item\Mace::getDemager() has invalid return type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L66
Method pocketmine\item\Mace::getDemager() is unused.
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L67
Access to an undefined property pocketmine\item\Mace::$demager.
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\item\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#L70
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L76
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L66
Method pocketmine\item\Mace::getDemager() has invalid return type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L66
Method pocketmine\item\Mace::getDemager() is unused.
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L67
Access to an undefined property pocketmine\item\Mace::$demager.
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\item\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#L70
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L76
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().