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

Interface 'Stringable' not found error on build docker php 7.3 and 7.4 #6010

Closed
samsonasik opened this issue Mar 29, 2021 · 2 comments · Fixed by #6011
Closed

Interface 'Stringable' not found error on build docker php 7.3 and 7.4 #6010

samsonasik opened this issue Mar 29, 2021 · 2 comments · Fixed by #6011
Labels

Comments

@samsonasik
Copy link
Member

samsonasik commented Mar 29, 2021

Bug Report

Subject Details
Rector version dev-main
Installed as this repository

Previous RectorPrefix20210329\parent error fixed by PR #6009 . Now show different error on docker build php 7.3 and 7.4:

28 1.326 Fatal error: Uncaught Error: Interface 'Stringable' not found in /rector/vendor/symfony/string/AbstractString.php:28
2313
@samsonasik samsonasik added the bug label Mar 29, 2021
@samsonasik
Copy link
Member Author

In generated rector-prefixed itself, the Stringable is used, which seems won't work on php 7.3 and 7.4:

https://github.com/rectorphp/rector-prefixed/blob/d85cbadc5ec408a53fb7a5e5aa304d906ce7395e/vendor/symfony/string/AbstractString.php#L28

@TomasVotruba It seems symfony/polyfill-php80 needed for require ?

@samsonasik
Copy link
Member Author

Oh, it actually already in vendor, but namespaced:

https://github.com/rectorphp/rector-prefixed/blob/d85cbadc5ec408a53fb7a5e5aa304d906ce7395e/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php#L3

which make it will not work.

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.

1 participant