Skip to content

Commit

Permalink
#2546 s/callable/Closure to please the ancient PHP version gods
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Feb 4, 2017
1 parent b713ba7 commit 1b1effb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Doctrine/Tests/DBAL/Functional/StatementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Doctrine\Tests\DBAL\Functional;

use Closure;
use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Types\Type;
Expand Down Expand Up @@ -176,7 +177,7 @@ public function testReuseStatementWithParameterBoundByReference()
/**
* @dataProvider emptyFetchProvider
*/
public function testFetchFromNonExecutedStatement(callable $fetch, $expected)
public function testFetchFromNonExecutedStatement(Closure $fetch, $expected)
{
$stmt = $this->_conn->prepare('SELECT id FROM stmt_test');

Expand All @@ -193,7 +194,7 @@ public function testCloseCursorOnNonExecutedStatement()
/**
* @dataProvider emptyFetchProvider
*/
public function testFetchFromNonExecutedStatementWithClosedCursor(callable $fetch, $expected)
public function testFetchFromNonExecutedStatementWithClosedCursor(Closure $fetch, $expected)
{
$stmt = $this->_conn->prepare('SELECT id FROM stmt_test');
$stmt->closeCursor();
Expand All @@ -204,7 +205,7 @@ public function testFetchFromNonExecutedStatementWithClosedCursor(callable $fetc
/**
* @dataProvider emptyFetchProvider
*/
public function testFetchFromExecutedStatementWithClosedCursor(callable $fetch, $expected)
public function testFetchFromExecutedStatementWithClosedCursor(Closure $fetch, $expected)
{
$this->_conn->insert('stmt_test', array('id' => 1));

Expand Down

0 comments on commit 1b1effb

Please sign in to comment.