Skip to content

Commit 2b48055

Browse files
committed
- src/Builder/Helpers/LazyRowGenerator.php: The class Generator is declared but never used. You should remove the use statement.
- src/Builder/RunnableSelect.php: The class Generator is declared but never used. You should remove the use statement.
1 parent 30f8b50 commit 2b48055

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Builder/Helpers/LazyRowGenerator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
namespace Kir\MySQL\Builder\Helpers;
33

44
use Closure;
5-
use Generator;
65
use Kir\MySQL\Builder\QueryStatement;
76

87
class LazyRowGenerator {
@@ -19,7 +18,7 @@ public function __construct($preserveTypes) {
1918
/**
2019
* @param QueryStatement $statement
2120
* @param Closure $callback
22-
* @return array[]|Generator
21+
* @return array[]|\Generator
2322
*/
2423
public function generate(QueryStatement $statement, Closure $callback = null) {
2524
while($row = $statement->fetch(\PDO::FETCH_ASSOC)) {

src/Builder/RunnableSelect.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace Kir\MySQL\Builder;
33

4-
use Generator;
54
use Kir\MySQL\Builder\Helpers\FieldTypeProvider;
65
use Kir\MySQL\Builder\Helpers\FieldValueConverter;
76
use Kir\MySQL\Builder\Helpers\LazyRowGenerator;
@@ -74,7 +73,7 @@ public function fetchRows(\Closure $callback = null) {
7473

7574
/**
7675
* @param \Closure $callback
77-
* @return array[]|Generator
76+
* @return array[]|\Generator
7877
*/
7978
public function fetchRowsLazy(\Closure $callback = null) {
8079
if(version_compare(PHP_VERSION, '5.5', '<=')) {

0 commit comments

Comments
 (0)