-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PHP 8.1 to CI #9006
Add PHP 8.1 to CI #9006
Conversation
9d00a25
to
f73f831
Compare
@@ -68,7 +70,7 @@ public function typesShouldBeConvertedForDQLFunctions(): void | |||
foreach ($query->getResult() as $i => $item) { | |||
$product = self::PRODUCTS[$i]; | |||
|
|||
self::assertSame(ltrim($product['price'], '-'), $item['absolute']); | |||
self::assertEquals(ltrim($product['price'], '-'), $item['absolute']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the reason to lower strictness for this assert?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type returned by the database driver is beyond our control. In PHP 8.1, various PDO drivers have become more type-aware and return integers and floats where we've received a string previously.
Signed-off-by: Alexander M. Turek <me@derrabus.de>
f73f831
to
9f173ff
Compare
* 2.9.x: Run PHP 8.1 CI with stable dependencies (doctrine#9058) Duplicate testTwoIterateHydrations (doctrine#9048) Add PHP 8.1 to CI (doctrine#9006) Fix locking non-existing entity (doctrine#9053) Signed-off-by: Alexander M. Turek <me@derrabus.de>
* 2.9.x: Run PHP 8.1 CI with stable dependencies (doctrine#9058) Duplicate testTwoIterateHydrations (doctrine#9048) Add PHP 8.1 to CI (doctrine#9006) Fix locking non-existing entity (doctrine#9053) Signed-off-by: Alexander M. Turek <me@derrabus.de>
* 2.9.x: Run PHP 8.1 CI with stable dependencies (doctrine#9058) Duplicate testTwoIterateHydrations (doctrine#9048) Add PHP 8.1 to CI (doctrine#9006) Fix locking non-existing entity (doctrine#9053) Signed-off-by: Alexander M. Turek <me@derrabus.de>
TODO:
Doctrine\Tests\ORM\Functional\Ticket\GH7941Test::typesShouldBeConvertedForDQLFunctions