Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37d3a7f

Browse files
Fix unserialize() errors when running tests on PHP 8.3
1 parent 4aadba6 commit 37d3a7f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Doctrine/Tests/ORM/Functional/ParserResultSerializationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public function testUnserializeSingleSelectResult(string $serialized): void
5656
/** @return Generator<string, array{string}> */
5757
public static function provideSerializedSingleSelectResults(): Generator
5858
{
59-
yield '2.14.3' => [file_get_contents(__DIR__ . '/ParserResults/single_select_2_14_3.txt')];
60-
yield '2.15.0' => [file_get_contents(__DIR__ . '/ParserResults/single_select_2_15_0.txt')];
59+
yield '2.14.3' => [rtrim(file_get_contents(__DIR__ . '/ParserResults/single_select_2_14_3.txt'), "\n")];
60+
yield '2.15.0' => [rtrim(file_get_contents(__DIR__ . '/ParserResults/single_select_2_15_0.txt'), "\n")];
6161
}
6262

6363
private static function parseQuery(Query $query): ParserResult

0 commit comments

Comments
 (0)