Skip to content

Commit 18990b9

Browse files
committed
Fix strict error, enable all errors on unit tests.
1 parent 189c915 commit 18990b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ public function loopTick(TimerInterface $timer)
133133
return;
134134
}
135135

136-
$reads = [];
136+
$reads = $errors = $rejects = [];
137137
foreach($this->conns as $conn)
138138
{
139139
$reads[] = $conn['mysqli'];
140140
}
141141

142142
// Returns immediately, the non-blocking magic!
143-
if (mysqli_poll($reads, $errors = [], $rejects = [], 0) < 1) return;
143+
if (mysqli_poll($reads, $errors, $rejects, 0) < 1) return;
144144

145145
/** @var Connection $read */
146146
foreach($reads as $read)

tests/bootstrap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3+
error_reporting(-1);
4+
35
require __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)