Skip to content

Commit 1b1effb

Browse files
committed
#2546 s/callable/Closure to please the ancient PHP version gods
1 parent b713ba7 commit 1b1effb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/Doctrine/Tests/DBAL/Functional/StatementTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Doctrine\Tests\DBAL\Functional;
44

5+
use Closure;
56
use Doctrine\DBAL\Driver\Statement;
67
use Doctrine\DBAL\Schema\Table;
78
use Doctrine\DBAL\Types\Type;
@@ -176,7 +177,7 @@ public function testReuseStatementWithParameterBoundByReference()
176177
/**
177178
* @dataProvider emptyFetchProvider
178179
*/
179-
public function testFetchFromNonExecutedStatement(callable $fetch, $expected)
180+
public function testFetchFromNonExecutedStatement(Closure $fetch, $expected)
180181
{
181182
$stmt = $this->_conn->prepare('SELECT id FROM stmt_test');
182183

@@ -193,7 +194,7 @@ public function testCloseCursorOnNonExecutedStatement()
193194
/**
194195
* @dataProvider emptyFetchProvider
195196
*/
196-
public function testFetchFromNonExecutedStatementWithClosedCursor(callable $fetch, $expected)
197+
public function testFetchFromNonExecutedStatementWithClosedCursor(Closure $fetch, $expected)
197198
{
198199
$stmt = $this->_conn->prepare('SELECT id FROM stmt_test');
199200
$stmt->closeCursor();
@@ -204,7 +205,7 @@ public function testFetchFromNonExecutedStatementWithClosedCursor(callable $fetc
204205
/**
205206
* @dataProvider emptyFetchProvider
206207
*/
207-
public function testFetchFromExecutedStatementWithClosedCursor(callable $fetch, $expected)
208+
public function testFetchFromExecutedStatementWithClosedCursor(Closure $fetch, $expected)
208209
{
209210
$this->_conn->insert('stmt_test', array('id' => 1));
210211

0 commit comments

Comments
 (0)