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

PHP 8.2: Deprecated: Use of "static" in callables is deprecated in .../vendor/webmozart/assert/src/Assert.php on line 939 #1802

Closed
niconoe- opened this issue Jan 16, 2023 · 1 comment · Fixed by #1803
Assignees
Labels

Comments

@niconoe-
Copy link
Contributor

Question Answer
Infection version 0.26.16 (infection.phar --version)
Test Framework version PHPUnit 9.5.26
PHP version 8.2.1 (php -v)
Platform Ubuntu
Github Repo -

When using PHP Infection with PHP 8.2, the following deprecation warning message happens:

Deprecated: Use of "static" in callables is deprecated in phar:///usr/local/bin/infection/vendor/webmozart/assert/src/Assert.php on line 939

From what I investigated, this is because PHP Infection 0.26.16 is requiring webmozart/assert:^1.3 and thanks to another dependency, the actual version installed for webmozart/assert is 1.9.1.
The deprecation is fixed on webmozart/assert 1.11.0

Would it be possible to change the composer.json to rely on webmozart/assert:^1.11 so that PHP Infection would benefit of this fix?
Or do you have other dependencies/supports that prevent you to rely on a more recent version of webmozart/assert package?

Thanks a lot!

@niconoe-
Copy link
Contributor Author

Thank you very much!

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 a pull request may close this issue.

3 participants