phpstan fail very sad :(

This commit is contained in:
Dylan K. Taylor 2022-07-18 15:26:14 +01:00
parent 8660dfe576
commit b8d1b00985
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ $readerFuncs = [
]; ];
$writerFuncs = [ $writerFuncs = [
"" => [ "" => [
"abstract public function writeInt(int \$bits, int \$value) : void;" "abstract public function writeInt(int \$bits, int \$value) : self;"
] ]
]; ];
$functionName = ""; $functionName = "";

View File

@ -29,7 +29,7 @@ namespace pocketmine\data\runtime;
*/ */
trait RuntimeEnumSerializerTrait{ trait RuntimeEnumSerializerTrait{
abstract public function writeInt(int $bits, int $value) : void; abstract public function writeInt(int $bits, int $value) : self;
public function writeBellAttachmentType(\pocketmine\block\utils\BellAttachmentType $value) : void{ public function writeBellAttachmentType(\pocketmine\block\utils\BellAttachmentType $value) : void{
$this->writeInt(2, match($value){ $this->writeInt(2, match($value){