mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-10 20:08:01 +00:00
UtilsTest: silence a phpstan-strict-rules warning
This commit is contained in:
parent
0ec869932f
commit
a1622fa345
@ -65,6 +65,6 @@ class UtilsTest extends TestCase{
|
|||||||
|
|
||||||
public function testNamespacedNiceClosureName() : void{
|
public function testNamespacedNiceClosureName() : void{
|
||||||
//be careful with this test. The closure has to be declared on the same line as the assertion.
|
//be careful with this test. The closure has to be declared on the same line as the assertion.
|
||||||
self::assertSame('closure@' . Utils::cleanPath(__FILE__) . '#L' . __LINE__, Utils::getNiceClosureName(function(){}));
|
self::assertSame('closure@' . Utils::cleanPath(__FILE__) . '#L' . __LINE__, Utils::getNiceClosureName(function() : void{}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user