diff --git a/src/Memcached.php b/src/Memcached.php index 93a3ff5..5ab6de2 100644 --- a/src/Memcached.php +++ b/src/Memcached.php @@ -254,7 +254,9 @@ private function normalizeServers(array $servers): array . ' containing hostname (string), port (int), and, optionally, weight (int) of the server.', ); } - + /** + * @psalm-var array{host:string,port:int,weight?:int} $server Need for PHP 8.0 + */ $normalized[] = [$server['host'], $server['port'], $server['weight'] ?? self::DEFAULT_SERVER_WEIGHT]; }