Skip to content

Mace Implementation #9479

Mace Implementation

Mace Implementation #9479

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

main.yml

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

Annotations

34 errors
PHP 8.2 / Generated Code consistency checks
Process completed with exit code 255.
PHP 8.2 / PHPUnit tests
Process completed with exit code 255.
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 / PHPUnit tests
Process completed with exit code 255.
PHP 8.3 / Generated Code consistency checks
Process completed with exit code 255.
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 / 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::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
PHP 8.2 / PHPStan analysis: 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().
PHP 8.2 / PHPStan analysis: 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().
PHP 8.2 / PHPStan analysis: 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.
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L66
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L66
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.2 / PHPStan analysis: src/item/Mace.php#L72
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::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
PHP 8.3 / PHPStan analysis: 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().
PHP 8.3 / PHPStan analysis: 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().
PHP 8.3 / PHPStan analysis: 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.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L66
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L66
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.3 / PHPStan analysis: src/item/Mace.php#L72
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::onAttackEntity() has parameter $returnedItems with no value type specified in iterable type array.
PHP 8.1 / PHPStan analysis: 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().
PHP 8.1 / PHPStan analysis: 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().
PHP 8.1 / PHPStan analysis: 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.
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L66
Parameter #3 $returnedItems of method pocketmine\item\Mace::onAttackEntity() is not optional.
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L66
Parameter $demager of method pocketmine\item\Mace::onAttackEntity() has invalid type pocketmine\item\EntityDamageByEntityEvent.
PHP 8.1 / PHPStan analysis: src/item/Mace.php#L72
Call to an undefined method pocketmine\event\entity\EntityDamageEvent::getDamager().
PHP 8.1 / PHPStan analysis
Process completed with exit code 1.