Bug in test suite on branch 2.5 #5838

Closed
opened 2026-01-22 15:19:17 +01:00 by admin · 1 comment
Owner

Originally created by @Sutefan on GitHub (Jan 8, 2018).

Originally assigned to: @Ocramius on GitHub.

Hi there,

When I launch PHPUnit on branch 2.5 I get the following message :

Fatal error: Declaration of Doctrine\Tests\Mocks\HydratorMockStatement::fetch($fetchStyle = NULL) must be compatible with Doctrine\DBAL\Driver\ResultStatement::fetch($fetchMode = NULL, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) in /var/www/html/tests/Doctrine/Tests/Mocks/HydratorMockStatement.php on line 11

I don't really know how to fix this. Has anyone a solution to repair this please ?

Originally created by @Sutefan on GitHub (Jan 8, 2018). Originally assigned to: @Ocramius on GitHub. Hi there, When I launch PHPUnit on branch 2.5 I get the following message : ` Fatal error: Declaration of Doctrine\Tests\Mocks\HydratorMockStatement::fetch($fetchStyle = NULL) must be compatible with Doctrine\DBAL\Driver\ResultStatement::fetch($fetchMode = NULL, $cursorOrientation = PDO::FETCH_ORI_NEXT, $cursorOffset = 0) in /var/www/html/tests/Doctrine/Tests/Mocks/HydratorMockStatement.php on line 11 ` I don't really know how to fix this. Has anyone a solution to repair this please ?
admin added the Won't FixQuestion labels 2026-01-22 15:19:17 +01:00
admin closed this issue 2026-01-22 15:19:17 +01:00
Author
Owner

@Ocramius commented on GitHub (Jan 8, 2018):

DBAL 2.5 and ORM 2.5 diverged on mock interface implementations: please upgrade to 2.6.

@Ocramius commented on GitHub (Jan 8, 2018): DBAL 2.5 and ORM 2.5 diverged on mock interface implementations: please upgrade to 2.6.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5838