Skip to content

Mace Implementation #9486

Mace Implementation

Mace Implementation #9486

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

main.yml

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

Annotations

28 errors
PHP 8.1 / Generated Code consistency checks
Process completed with exit code 255.
PHP 8.3 / PHPUnit tests
Process completed with exit code 255.
PHP 8.3 / Generated Code consistency checks
Process completed with exit code 255.
PHP 8.1 / PHPUnit tests
Process completed with exit code 255.
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.2 / Integration tests
Process completed with exit code 1.
PHP 8.1 / Integration tests
Process completed with exit code 1.
PHP 8.3 / Integration tests
Process completed with exit code 1.
Code Style checks
Process completed with exit code 8.
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 $damager (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#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
Process completed with exit code 1.
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 $damager (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#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
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 $damager (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#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
Process completed with exit code 1.