fix code to phpstan-level-2

This commit is contained in:
crazywhalecc
2022-04-02 23:37:22 +08:00
committed by Jerry Ma
parent be9874a9ad
commit eecbe49955
31 changed files with 450 additions and 384 deletions

View File

@@ -12,10 +12,7 @@ class ZMAtomic
/** @var Atomic[] */
public static $atomics;
/**
* @param $name
*/
public static function get($name): ?Atomic
public static function get(string $name): ?Atomic
{
return self::$atomics[$name] ?? null;
}