Skip to content

fix: phpstan

fix: phpstan #31

Triggered via push November 9, 2024 15:33
Status Failure
Total duration 1m 38s
Artifacts

main.yml

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

Annotations

30 errors
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #1 $x of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #3 $z of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L59
Parameter #1 $start of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L59
Parameter #2 $end of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L60
Parameter #1 $start of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L60
Parameter #2 $end of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L61
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L62
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.2 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L63
Offset int does not exist on array{}|array{0: pocketmine\block\NetherRoots, 1?: pocketmine\block\NetherRoots}.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #1 $x of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #3 $z of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L59
Parameter #1 $start of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L59
Parameter #2 $end of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L60
Parameter #1 $start of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L60
Parameter #2 $end of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L61
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L62
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.3 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L63
Offset int does not exist on array{}|array{0: pocketmine\block\NetherRoots, 1?: pocketmine\block\NetherRoots}.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #1 $x of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L35
Parameter #3 $z of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L59
Parameter #1 $start of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L59
Parameter #2 $end of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L60
Parameter #1 $start of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L60
Parameter #2 $end of method pocketmine\utils\Random::nextRange() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L61
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L62
Parameter #2 $y of method pocketmine\world\ChunkManager::getBlockAt() expects int, float|int given.
PHP 8.1 / PHPStan analysis: src/world/generator/object/NetherGrass.php#L63
Offset int does not exist on array{}|array{0: pocketmine\block\NetherRoots, 1?: pocketmine\block\NetherRoots}.