mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
ClientCacheMissResponsePacket: fix broken type assert in create()
ouch! PhpStorm never saw these...
This commit is contained in:
@@ -42,7 +42,7 @@ class ClientCacheMissResponsePacket extends DataPacket/* implements ClientboundP
|
|||||||
*/
|
*/
|
||||||
public static function create(array $blobs) : self{
|
public static function create(array $blobs) : self{
|
||||||
//type check
|
//type check
|
||||||
(static function(ChunkCacheBlob ...$blobs){})($blobs);
|
(static function(ChunkCacheBlob ...$blobs){})(...$blobs);
|
||||||
|
|
||||||
$result = new self;
|
$result = new self;
|
||||||
$result->blobs = $blobs;
|
$result->blobs = $blobs;
|
||||||
|
Reference in New Issue
Block a user