Skip to content

Commit cec7957

Browse files
committed
Update: Fix lint errors
1 parent 7fb4951 commit cec7957

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎features/bootstrap/SQLiteFeatureContext.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public function theSqliteDatabaseShouldContainTheImportedData() {
4949
$this->connectToDatabase();
5050
$result = $this->db->query( "SELECT name FROM sqlite_master WHERE type='table'" );
5151
$tables = [];
52-
while ( $row = $result->fetchArray() ) {
52+
while ( true ) {
53+
$row = $result->fetchArray();
54+
if ( false === $row ) {
55+
break;
56+
}
5357
$tables[] = $row['name'];
5458
}
5559
if ( empty( $tables ) ) {

0 commit comments

Comments
 (0)