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

Invalid always exists variable with SOAP call reported #4822

Closed
liborm85 opened this issue Apr 7, 2021 · 2 comments
Closed

Invalid always exists variable with SOAP call reported #4822

liborm85 opened this issue Apr 7, 2021 · 2 comments

Comments

@liborm85
Copy link

liborm85 commented Apr 7, 2021

Bug report

After update phpstan to 0.12.83 is reported error Variable $response in isset() always exists and is not nullable..
Soap call $soapClient->test() can throw exception and $response may be undefined, see snippet.

In my phpstan.neon is SOAP calls ignored (as suggested in #262 (comment)):

  ignoreErrors:
    - '#Call to an undefined method SoapClient::#'

Code snippet that reproduces the problem

https://phpstan.org/r/1f61e3a6-f629-4edf-a4f0-075ff4c4f1f7

Expected output

13 | Call to an undefined method SoapClient::test().

Actual output

13 | Call to an undefined method SoapClient::test().
19 | Variable $response in isset() always exists and is not nullable.
@ondrejmirtes
Copy link
Member

Fixed (including the undefined method): phpstan/phpstan-src@f6107ad

@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 May 25, 2021
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