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

Cannot access property on string not reported in isset #6899

Closed
rajyan opened this issue Mar 24, 2022 · 2 comments · Fixed by phpstan/phpstan-src#1174
Closed

Cannot access property on string not reported in isset #6899

rajyan opened this issue Mar 24, 2022 · 2 comments · Fixed by phpstan/phpstan-src#1174

Comments

@rajyan
Copy link
Contributor

rajyan commented Mar 24, 2022

Bug report

Maybe a feature request.
While null coalesce reports error for Cannot access property $itsString on string., isset dosen't.

Noticed while creating phpstan/phpstan-src#1104.

Code snippet that reproduces the problem

https://phpstan.org/r/d4626f91-d5b2-4cf8-8c9d-a4d07cf6b3c6

Expected output

Cannot access property $itsString on string.

in line 7 too.

Did PHPStan help you today? Did it make you happy in any way?

Yeah, it' helping me everyday. I could notice an error occurred after applying Rector auto fix by PHPStan today :).

rajyan added a commit to rajyan/phpstan-src that referenced this issue Apr 3, 2022
rajyan added a commit to rajyan/phpstan-src that referenced this issue Apr 3, 2022
rajyan added a commit to rajyan/phpstan-src that referenced this issue Apr 5, 2022
rajyan added a commit to rajyan/phpstan-src that referenced this issue Apr 5, 2022
@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src#1174

@github-actions
Copy link

github-actions bot commented May 7, 2022

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 May 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants