Bug report
using a callable with assert-if-true marks all keys as optional, while a conditional return correctly filters the array.
Code snippet that reproduces the problem
https://phpstan.org/r/dffd6a59-f5b1-4f8e-b23c-5b55e9680915
Expected output
Expected assertions to pass
Did PHPStan help you today? Did it make you happy in any way?
No response
Bug report
using a callable with assert-if-true marks all keys as optional, while a conditional return correctly filters the array.
Code snippet that reproduces the problem
https://phpstan.org/r/dffd6a59-f5b1-4f8e-b23c-5b55e9680915
Expected output
Expected assertions to pass
Did PHPStan help you today? Did it make you happy in any way?
No response