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

Fix php 8.3 support in tests #39866

Merged
merged 3 commits into from Aug 15, 2023
Merged

Fix php 8.3 support in tests #39866

merged 3 commits into from Aug 15, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Aug 14, 2023

Summary

Cherry-picks from #39796 to improve PHP 8.3 support of our test suite.

Checklist

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Fixing 32bit CI on PHP>=8.3

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added this to the Nextcloud 28 milestone Aug 14, 2023
@come-nc come-nc self-assigned this Aug 14, 2023
@come-nc come-nc added bug 3. to review Waiting for reviews labels Aug 14, 2023
@come-nc come-nc changed the title Enh/fix php 8.3 support in tests Fix php 8.3 support in tests Aug 14, 2023
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc requested review from marcelklehr, kesselb, a team, ArtificialOwl, icewind1991 and blizzz and removed request for a team August 14, 2023 16:13
@come-nc come-nc marked this pull request as ready for review August 14, 2023 16:13
@@ -656,7 +656,7 @@ public function testGetDenormalizedData($expected, $key, $calData): void {
try {
$actual = $this->backend->getDenormalizedData($calData);
$this->assertEquals($expected, $actual[$key]);
} catch (\ValueError $e) {
} catch (\Throwable $e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} catch (\Throwable $e) {
} catch (\ValueError|\DateRangeError $e) {

Maybe?

@kesselb kesselb merged commit 89f66a5 into master Aug 15, 2023
42 checks passed
@kesselb kesselb deleted the enh/fix-php-8.3-support-in-tests branch August 15, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants