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

Deprecated: Return type of Symfony\Component\Process\Process::getIterator #457

Open
pjcvijay opened this issue Oct 11, 2022 · 4 comments
Open
Assignees

Comments

@pjcvijay
Copy link

I'm getting below error in PHP 8.1:

( ! ) Deprecated: Return type of Symfony\Component\Process\Process::getIterator($flags = 0) should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/autouonline/vendor/symfony/process/Process.php on line 567

I'm using v1.4.1, looks like it's not compatible with PHP 8.0.

Any suggestions please?

Thanks!

@garak
Copy link
Contributor

garak commented Jan 6, 2023

This library is indeed compatible with PHP 8.0 (and even 8.1 by the way).
The deprecation you get is raised by an external library.

@PedroTroller
Copy link
Member

@pjcvijay Indeed, according to the error you encounter, it is the version of symfony/process that triggers this warning, snappy is compatible with the latest version of the component, can you try to update symfony/process?

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 18, 2023
@tacman
Copy link

tacman commented Oct 30, 2023

This can be addressed with #492

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

No branches or pull requests

6 participants