Open janedbal opened 6 months ago
1.3.16
is the version where this breaks.
Same here at version 1.4.1
.
I solved temporarly by creating a variable, and using it in the Count function :
// Before :
self::assertCount(1, $this->getDataFromDatabase());
// After :
$newData = $this->getDataFromDatabase();
self::assertCount(1, $newData);
Simplified reproducible example:
This poped up while upgrading phpstan-phpunit from
1.3.15
to1.4.0