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

Test against PHP 8.2 and MongoDB 6.0 #2490

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Dec 14, 2022

Q A
Type task
BC Break no
Fixed issues

@malarzm malarzm added this to the 2.5.0 milestone Dec 14, 2022
@malarzm malarzm added the Task label Dec 14, 2022
@malarzm malarzm force-pushed the 2-5-test-matrix-changes branch 4 times, most recently from 57cb0b4 to 9824ba6 Compare December 20, 2022 19:26
@malarzm malarzm force-pushed the 2-5-test-matrix-changes branch from 9824ba6 to 4b0cb01 Compare December 20, 2022 19:50
- "5.0"
- "4.4"
- "4.2"
- "4.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.0 has reached end of life in April 2022, no need to test against it. 4.2 will be gone in April 2023 by the way

@@ -76,11 +77,6 @@ jobs:
- name: "Show driver information"
run: "php --ri mongodb"

# Remove this when laminas/laminas-code 4.5 is released
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it has been ;)

@@ -278,34 +278,6 @@ public function testLookupStageReferenceManyStoreAsRef(): void
self::assertSame('malarzm', $result[1]['users'][0]['username']);
}

public function testLookupStageReferenceManyWithoutUnwindMongoDB34(): void
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test started failing with MongoDB 6.0. Given is was written specifically for 3.4 it's ok to get rid of it

@@ -44,7 +45,7 @@ public function testLoadingInvalidBackingValueThrowsError(): void
$this->dm->getDocumentCollection(Card::class)->insertOne($document);

$this->expectException(ValueError::class);
$this->expectExceptionMessage(sprintf('"ABC" is not a valid backing value for enum "%s"', Suit::class));
$this->expectExceptionMessageMatches(sprintf('/^"ABC" is not a valid backing value for enum "?%s"?$/', preg_quote(Suit::class)));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quotes are gone in 8.2

@@ -29,6 +29,7 @@ public function testTest(): void

assert(isset($collection[0], $collection[1], $collection[2]));
// place element '0' after '1'
/** @var ArrayCollection<int, MODM29Embedded> $collection */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suddenly made Psalm fail

@malarzm malarzm merged commit 632ad8e into doctrine:2.5.x Dec 20, 2022
@malarzm malarzm deleted the 2-5-test-matrix-changes branch December 20, 2022 20:37
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.

1 participant