Skip to content
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

Merged
merged 1 commit into from
Oct 2, 2021
Merged

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Sep 12, 2021

TODO:

@derrabus derrabus changed the title WIP: Add PHP 8.1 to CI Add PHP 8.1 to CI Sep 12, 2021
@derrabus derrabus force-pushed the improvement/php-8.1-ci branch 2 times, most recently from 9d00a25 to f73f831 Compare September 28, 2021 20:34
@derrabus derrabus marked this pull request as ready for review September 28, 2021 20:42
@derrabus derrabus added the CI label Sep 28, 2021
@derrabus derrabus requested a review from greg0ire September 28, 2021 21:42
@@ -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']);
Copy link
Member

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?

Copy link
Member Author

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>
@derrabus derrabus force-pushed the improvement/php-8.1-ci branch from f73f831 to 9f173ff Compare October 2, 2021 14:44
@derrabus derrabus merged commit 70b0f50 into doctrine:2.9.x Oct 2, 2021
@derrabus derrabus deleted the improvement/php-8.1-ci branch October 2, 2021 15:20
@derrabus derrabus mentioned this pull request Oct 2, 2021
derrabus added a commit to derrabus/orm that referenced this pull request Oct 2, 2021
* 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>
derrabus added a commit to derrabus/orm that referenced this pull request Oct 2, 2021
* 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>
derrabus added a commit to derrabus/orm that referenced this pull request Oct 2, 2021
* 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>
@greg0ire greg0ire added this to the 2.9.6 milestone Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants