Skip to content

Commit 3fb1b76

Browse files
authored
Merge pull request #75 from pdphilip/5.x
Connection bug fix
2 parents 9dc9751 + 1318e3a commit 3fb1b76

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ public function setOptions(): void
169169
}
170170

171171
if (! empty($this->config['options']['retires'])) {
172-
$this->options()->add('retires', $this->config['options']['retires']);
172+
$this->options()->add('retires', (int) $this->config['options']['retires']);
173173
}
174174

175175
if (isset($this->config['options']['meta_header'])) {
176176
$this->options()->add('meta_header', $this->config['options']['meta_header']);
177177
}
178178

179179
if (isset($this->config['options']['default_limit'])) {
180-
$this->defaultQueryLimit = $this->config['options']['default_limit'];
180+
$this->defaultQueryLimit = (int) $this->config['options']['default_limit'];
181181
}
182182
}
183183

src/Schema/ManagesDefaultMigrations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ public function morphs($name, $indexName = null): void
258258
/**
259259
* {@inheritdoc}
260260
*/
261-
public function nullableTimestamps($precision = 0)
261+
public function nullableTimestamps($precision = 0): void
262262
{
263263
$this->timestamps($precision);
264264
}
265265

266266
/**
267267
* {@inheritdoc}
268268
*/
269-
public function timestamps($precision = 0)
269+
public function timestamps($precision = 0): void
270270
{
271271
$this->timestamp('created_at');
272272
$this->timestamp('updated_at');

0 commit comments

Comments
 (0)