Bug report
Condition always-string ?? 'string' is not reported as useless in following snippet. When passed as argument, it works.
Code snippet that reproduces the problem
Snippet: https://phpstan.org/r/9aa7f36f-d294-404f-849b-590a288ad9fe
Expected output
Useless null coalesce reported
Bug report
Condition
always-string ?? 'string'is not reported as useless in following snippet. When passed as argument, it works.Code snippet that reproduces the problem
Snippet: https://phpstan.org/r/9aa7f36f-d294-404f-849b-590a288ad9fe
Expected output
Useless null coalesce reported