mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
ClientCacheMissResponsePacket: fix broken type assert in create()
ouch! PhpStorm never saw these...
This commit is contained in:
parent
77d8f133f1
commit
f0c36f3413
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user