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

Change phpunit workflow to run under php 8.1 #9

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

chris-doehring
Copy link
Contributor

This PR changes the phpunit workflow to also run under php 8.1.

@@ -110,7 +110,7 @@ public function testHttpError(): void

$request->expects(self::once())->method('withBody')->with($stream)->willReturnSelf();

$e = $this->createMock(Exception::class);
$e = new Exception($this->faker()->text());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, but he had some issues with it under php 8.1...

PHP Fatal error:  During inheritance of Exception: Uncaught Return type of Mock_Exception_63543ef0::__wakeup() should either be compatible with Exception::__wakeup(): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

dogado-json-api-client\tests\Service\OAuth2AuthenticatorTest.php:116
 in dogado-json-api-client\vendor\phpunit\phpunit\src\Framework\MockObject\MockClass.php(51) : eval()'d code on line 3

@chris-doehring chris-doehring merged commit 9f82454 into main Sep 10, 2021
@chris-doehring chris-doehring deleted the feature/php8.1-tests branch September 10, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants