mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
fix code to phpstan-level-2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user