Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Feb 7, 2024
1 parent 19e6411 commit 0cebb55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/camera/CameraFadeInstruction.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(

public function getTime() : ?Time{ return $this->time; }

public function getColor() : ?CameraFadeInstructionColor{ return $this->color; }
public function getColor() : ?Color{ return $this->color; }

public static function read(PacketSerializer $in) : self{
$time = $in->readOptional(fn() => Time::read($in));
Expand Down
6 changes: 5 additions & 1 deletion tests/phpstan/configs/architectural-issues.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
parameters:
ignoreErrors:
-
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\LevelChunkPacket\\:\\:\\$dimensionId \\(0\\|1\\|2\\) does not accept int\\.$#"
count: 1
path: ../../../src/LevelChunkPacket.php

-
message: "#^Parameter \\#1 \\$eid of method pocketmine\\\\network\\\\mcpe\\\\protocol\\\\serializer\\\\PacketSerializer\\:\\:putActorUniqueId\\(\\) expects int, int\\|null given\\.$#"
count: 1
Expand All @@ -19,4 +24,3 @@ parameters:
message: "#^Parameter \\#1 \\$v of method pocketmine\\\\utils\\\\BinaryStream\\:\\:putVarInt\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: ../../../src/types/recipe/FurnaceRecipe.php

0 comments on commit 0cebb55

Please sign in to comment.