ClientCacheMissResponsePacket: fix broken type assert in create()

ouch! PhpStorm never saw these...
This commit is contained in:
Dylan K. Taylor 2019-10-22 11:57:04 +01:00
parent 77d8f133f1
commit f0c36f3413

View File

@ -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;