mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Force types of RegistryTrait usages to shut PHPStan up
we need generic traits to solve this problem properly.
This commit is contained in:
@ -39,11 +39,15 @@ final class TestCloningRegistry{
|
||||
* @return \stdClass[]
|
||||
*/
|
||||
public static function getAll() : array{
|
||||
return self::_registryGetAll();
|
||||
/** @var \stdClass[] $result */
|
||||
$result = self::_registryGetAll();
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function fromString(string $s) : \stdClass{
|
||||
return self::_registryFromString($s);
|
||||
/** @var \stdClass $result */
|
||||
$result = self::_registryFromString($s);
|
||||
return $result;
|
||||
}
|
||||
|
||||
protected static function setup() : void{
|
||||
|
Reference in New Issue
Block a user