-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Conversation
malarzm
commented
Dec 14, 2022
Q | A |
---|---|
Type | task |
BC Break | no |
Fixed issues |
57cb0b4
to
9824ba6
Compare
9824ba6
to
4b0cb01
Compare
- "5.0" | ||
- "4.4" | ||
- "4.2" | ||
- "4.0" |
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.
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 |
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.
it has been ;)
@@ -278,34 +278,6 @@ public function testLookupStageReferenceManyStoreAsRef(): void | |||
self::assertSame('malarzm', $result[1]['users'][0]['username']); | |||
} | |||
|
|||
public function testLookupStageReferenceManyWithoutUnwindMongoDB34(): void |
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.
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))); |
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.
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 */ |
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.
This suddenly made Psalm fail