From 4b1f3e827511fb7e7c03eb3669c7c6c3dc25fa64 Mon Sep 17 00:00:00 2001 From: Joshua Baker <160484+joshuabaker@users.noreply.github.com> Date: Mon, 11 Jan 2021 17:46:04 +0000 Subject: [PATCH] Type cast port to integer ``` Warning: Memcached::addServer() expects parameter 2 to be int, string given ``` --- src/Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bootstrap.php b/src/Bootstrap.php index 7947230..10c2f6f 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -53,7 +53,7 @@ protected function getMemcachedServers(): array foreach (range(1, getenv('MEMCACHE_COUNT')) as $num) { $servers[] = [ 'host' => getenv('MEMCACHE_HOST' . $num), - 'port' => getenv('MEMCACHE_PORT' . $num), + 'port' => (int) getenv('MEMCACHE_PORT' . $num), 'weight' => 1, ]; }