Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Feb 17, 2024
1 parent 735e49a commit 0d8f594
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Memcached.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 0d8f594

Please sign in to comment.