mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +00:00
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:
parent
9cf8f608d8
commit
81c1613e5d
@ -5,3 +5,8 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../phpunit/network/mcpe/StupidJsonDecodeTest.php
|
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
|
||||||
|
|
||||||
|
@ -26,7 +26,10 @@ namespace pocketmine\network\mcpe;
|
|||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
class StupidJsonDecodeTest extends TestCase{
|
class StupidJsonDecodeTest extends TestCase{
|
||||||
/** @var \Closure */
|
/**
|
||||||
|
* @var \Closure
|
||||||
|
* @phpstan-var \Closure(string $json, bool $assoc=) : mixed
|
||||||
|
*/
|
||||||
private $stupidJsonDecodeFunc;
|
private $stupidJsonDecodeFunc;
|
||||||
|
|
||||||
public function setUp() : void{
|
public function setUp() : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user