When accessing properties/methods with the null safe operator, the result seems to be evaluated incorrectly.
The resulting type should be <Type>|null, but psalm evaluates only <Type>.
https://psalm.dev/r/46409b9f5a
```php
getPrevious())
&& $authException?->getToken()
) {
return new Response($prev);
}
return new Response(null);
}
}
```
```
Psalm output (using commit 0e43c44):
ERROR: TypeDoesNotContainNull - 35:16 - AuthenticationException does not contain null
ERROR: RedundantCondition - 35:16 - Type AuthenticationException for $authException is never null
ERROR: RedundantCondition - 34:13 - Type AuthenticationException for $authException is never null
```
When accessing properties/methods with the null safe operator, the result seems to be evaluated incorrectly. The resulting type should be
<Type>|null
, but psalm evaluates only<Type>
.https://psalm.dev/r/14b17f9fa4