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

Assert::that conditions are not working as expected #2

Open
meridius opened this issue Dec 5, 2018 · 0 comments
Open

Assert::that conditions are not working as expected #2

meridius opened this issue Dec 5, 2018 · 0 comments

Comments

@meridius
Copy link

meridius commented Dec 5, 2018

Given this case https://phpstan.org/r/ea5dfda5-33b6-49e7-8e5f-1db4214533e4 I'd expect that method withAssertwill work just like withIf. PhpStan will however throw following error

Offset 'host' does not exist on false|array('scheme' => string, ?'host' => string, ?'port' => int, ?'user' => string, ?'pass' => string, ?'query' => string, ?'fragment' => string). |

I know that phpstan/phpstan-beberlei-assert is not integrated in the web-tester, but the same will happen locally when it is.

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

1 participant