StupidJsonDecodeTest: added a callable prototype

for some reason this causes a new error to be reported which previously didn't show. I have no idea why.
This commit is contained in:
Dylan K. Taylor 2020-08-31 13:45:23 +01:00
parent 9cf8f608d8
commit 81c1613e5d
2 changed files with 9 additions and 1 deletions

View File

@ -5,3 +5,8 @@ parameters:
count: 1
path: ../../phpunit/network/mcpe/StupidJsonDecodeTest.php
-
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\StupidJsonDecodeTest\\:\\:\\$stupidJsonDecodeFunc \\(Closure\\(string, bool\\)\\: mixed\\) does not accept Closure\\|null\\.$#"
count: 1
path: ../../phpunit/network/mcpe/StupidJsonDecodeTest.php

View File

@ -26,7 +26,10 @@ namespace pocketmine\network\mcpe;
use PHPUnit\Framework\TestCase;
class StupidJsonDecodeTest extends TestCase{
/** @var \Closure */
/**
* @var \Closure
* @phpstan-var \Closure(string $json, bool $assoc=) : mixed
*/
private $stupidJsonDecodeFunc;
public function setUp() : void{