# Bug report Variable defined in if or expr is always defined, but reported as undefined. ### Code snippet that reproduces the problem https://phpstan.org/r/2f2a7985-770e-475f-b7b9-e1baee21eb09 ### Expected output no error