Skip to content

Commit b34eb25

Browse files
committed
Remove redundant code.
By initializing properties correctly in the class we can avoid method calls to setup initial state.
1 parent 0e76d16 commit b34eb25

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Database/Statement/BufferedStatement.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class BufferedStatement extends StatementDecorator
4242
*
4343
* @var bool
4444
*/
45-
protected $_allFetched = true;
45+
protected $_allFetched = false;
4646

4747
/**
4848
* Current record pointer
@@ -51,18 +51,6 @@ class BufferedStatement extends StatementDecorator
5151
*/
5252
protected $_counter = 0;
5353

54-
/**
55-
* Constructor
56-
*
57-
* @param \Cake\Database\StatementInterface|null $statement Statement implementation such as PDOStatement
58-
* @param \Cake\Database\Driver|null $driver Driver instance
59-
*/
60-
public function __construct($statement = null, $driver = null)
61-
{
62-
parent::__construct($statement, $driver);
63-
$this->_reset();
64-
}
65-
6654
/**
6755
* Execute the statement and return the results.
6856
*

0 commit comments

Comments
 (0)