diff --git a/src/Db/Drivers/Swoole/Statement.php b/src/Db/Drivers/Swoole/Statement.php index 81159aa..795a7fa 100644 --- a/src/Db/Drivers/Swoole/Statement.php +++ b/src/Db/Drivers/Swoole/Statement.php @@ -335,6 +335,7 @@ public function getInstance() /** * @return mixed|false */ + #[\ReturnTypeWillChange] public function current() { return current($this->result); @@ -343,6 +344,7 @@ public function current() /** * @return int|string|null */ + #[\ReturnTypeWillChange] public function key() { return key($this->result); @@ -367,6 +369,7 @@ public function rewind(): void /** * {@inheritDoc} */ + #[\ReturnTypeWillChange] public function valid() { return false !== $this->current(); diff --git a/tests/config/config.php b/tests/config/config.php index 36b7c59..e4586bb 100644 --- a/tests/config/config.php +++ b/tests/config/config.php @@ -62,7 +62,7 @@ 'resource' => [ 'dbClass' => 'PdoPgsqlDriver', 'host' => imiGetEnv('PGSQL_SERVER_HOST', '127.0.0.1'), - 'port' => imiGetEnv('PGSQL_SERVER_PORT', 5432), + 'port' => (int) imiGetEnv('PGSQL_SERVER_PORT', 5432), 'username' => imiGetEnv('PGSQL_SERVER_USERNAME', 'root'), 'password' => imiGetEnv('PGSQL_SERVER_PASSWORD', 'root'), 'database' => 'db_imi_test', @@ -84,7 +84,7 @@ 'resource' => [ 'dbClass' => 'PdoPgsqlDriver', 'host' => imiGetEnv('PGSQL_SERVER_HOST', '127.0.0.1'), - 'port' => imiGetEnv('PGSQL_SERVER_PORT', 5432), + 'port' => (int) imiGetEnv('PGSQL_SERVER_PORT', 5432), 'username' => imiGetEnv('PGSQL_SERVER_USERNAME', 'root'), 'password' => imiGetEnv('PGSQL_SERVER_PASSWORD', 'root'), 'database' => 'db_imi_test', @@ -105,7 +105,7 @@ 'resource' => [ 'dbClass' => 'SwoolePgsqlDriver', 'host' => imiGetEnv('PGSQL_SERVER_HOST', '127.0.0.1'), - 'port' => imiGetEnv('PGSQL_SERVER_PORT', 5432), + 'port' => (int) imiGetEnv('PGSQL_SERVER_PORT', 5432), 'username' => imiGetEnv('PGSQL_SERVER_USERNAME', 'root'), 'password' => imiGetEnv('PGSQL_SERVER_PASSWORD', 'root'), 'database' => 'db_imi_test', @@ -120,7 +120,7 @@ 'maindb' => [ 'dbClass' => 'PdoPgsqlDriver', 'host' => imiGetEnv('PGSQL_SERVER_HOST', '127.0.0.1'), - 'port' => imiGetEnv('PGSQL_SERVER_PORT', 5432), + 'port' => (int) imiGetEnv('PGSQL_SERVER_PORT', 5432), 'username' => imiGetEnv('PGSQL_SERVER_USERNAME', 'root'), 'password' => imiGetEnv('PGSQL_SERVER_PASSWORD', 'root'), 'database' => 'db_imi_test',