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

strval should accept Stringable #9283

Closed
takaram opened this issue May 8, 2023 · 2 comments
Closed

strval should accept Stringable #9283

takaram opened this issue May 8, 2023 · 2 comments

Comments

@takaram
Copy link

takaram commented May 8, 2023

strval accepts Stringable objects as an argument, but PHPStan reports an error.

https://phpstan.org/r/513ed638-5c42-4114-9e92-e61fd6b78ee4

This issue can be reproduced on the current HEAD of 1.10.x branch, but not on the latest release 1.10.14.
It seems to be introduced by phpstan/phpstan-src#2354.

This breaks the integration test of phpstan-src repository.
https://github.com/phpstan/phpstan-src/actions/runs/4899797660/jobs/8750045570

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@3a4cd59

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants