Bug report
Asserts should be considered "side-effects", so that the function call is not reported as useless.
Code snippet that reproduces the problem
https://phpstan.org/r/c939e186-d87d-4efd-baf5-351f8442e985
Expected output
There should be no error reported.
Did PHPStan help you today? Did it make you happy in any way?
❤️❤️❤️