mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +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:
@ -112,7 +112,10 @@ final class VanillaEffects{
|
||||
* @return Effect[]
|
||||
*/
|
||||
public static function getAll() : array{
|
||||
return self::_registryGetAll();
|
||||
//phpstan doesn't support generic traits yet :(
|
||||
/** @var Effect[] $result */
|
||||
$result = self::_registryGetAll();
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function fromString(string $name) : Effect{
|
||||
|
Reference in New Issue
Block a user