From 27541f5883afdaafa9980fcd9bc746fe8ac34f8d Mon Sep 17 00:00:00 2001 From: David Philip Date: Sun, 13 Jul 2025 23:09:04 +0200 Subject: [PATCH] Connection bug fix --- src/Connection.php | 4 ++-- src/Schema/ManagesDefaultMigrations.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Connection.php b/src/Connection.php index a0fc5af..9a581fe 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -169,7 +169,7 @@ public function setOptions(): void } if (! empty($this->config['options']['retires'])) { - $this->options()->add('retires', $this->config['options']['retires']); + $this->options()->add('retires', (int) $this->config['options']['retires']); } if (isset($this->config['options']['meta_header'])) { @@ -177,7 +177,7 @@ public function setOptions(): void } if (isset($this->config['options']['default_limit'])) { - $this->defaultQueryLimit = $this->config['options']['default_limit']; + $this->defaultQueryLimit = (int) $this->config['options']['default_limit']; } } diff --git a/src/Schema/ManagesDefaultMigrations.php b/src/Schema/ManagesDefaultMigrations.php index 25b1055..de57813 100644 --- a/src/Schema/ManagesDefaultMigrations.php +++ b/src/Schema/ManagesDefaultMigrations.php @@ -258,7 +258,7 @@ public function morphs($name, $indexName = null): void /** * {@inheritdoc} */ - public function nullableTimestamps($precision = 0) + public function nullableTimestamps($precision = 0): void { $this->timestamps($precision); } @@ -266,7 +266,7 @@ public function nullableTimestamps($precision = 0) /** * {@inheritdoc} */ - public function timestamps($precision = 0) + public function timestamps($precision = 0): void { $this->timestamp('created_at'); $this->timestamp('updated_at');