From 1b1effbddbdc0f40d1c8f849f44bcddac4f52a48 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sat, 4 Feb 2017 22:20:13 +0100 Subject: [PATCH] #2546 s/callable/Closure to please the ancient PHP version gods --- tests/Doctrine/Tests/DBAL/Functional/StatementTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Doctrine/Tests/DBAL/Functional/StatementTest.php b/tests/Doctrine/Tests/DBAL/Functional/StatementTest.php index 4154226999e..ef81e5f1774 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/StatementTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/StatementTest.php @@ -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; @@ -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'); @@ -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(); @@ -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));