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

PHPUnit Exception when running in Github Actions testing PHP 7.4 #638

Closed
2 of 5 tasks
udidol opened this issue Aug 30, 2022 · 3 comments
Closed
2 of 5 tasks

PHPUnit Exception when running in Github Actions testing PHP 7.4 #638

udidol opened this issue Aug 30, 2022 · 3 comments
Assignees
Labels
invalid The issue is not valid

Comments

@udidol
Copy link

udidol commented Aug 30, 2022

Describe the bug

We run CI tests using Github actions.
Part of our tests are PHPUnit tests, which are run using the setup-php package V2.
We test different PHP versions, and we get an Exception only on PHP 7.4:

Exception : Serialization of 'ReflectionClass' is not allowed

This is an identical issue to one also opened in Mockery: mockery/mockery#1038

Is it possible the PHP build for 7.4 used in your package is not fully up to date?

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

Linux Ubuntu

PHP versions

7.4

To Reproduce

https://github.com/elementor/elementor/blob/master/.github/workflows/phpunit.yml

Expected behavior

We expect such an error to not be thrown... This seems to be a bug in early PHP 7.4 RCs.

Screenshots/Logs

Additional context

Are you willing to submit a PR?

@udidol udidol added the bug Something isn't working label Aug 30, 2022
@shivammathur
Copy link
Owner

The current PHP 7.4 version is 7.4.30.

@udidol
Copy link
Author

udidol commented Aug 30, 2022

@shivammathur Do you have any idea what this issue could be caused by?

@shivammathur
Copy link
Owner

I'm not sure, but this is not related to setup-php, so closing the issue.

@shivammathur shivammathur added invalid The issue is not valid and removed bug Something isn't working labels Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid The issue is not valid
Projects
None yet
Development

No branches or pull requests

2 participants