Open sneakyvv opened 1 hour ago
Should not mark the (first) cast as unnecessary. (The second cast is there because of Psalm config)
Windows 11, PhpStorm 2024.2.3
I just noted that this does work properly.
Is it a bug then? Or is it because php will cast for us? Even when strict_types=1?
Current behaviour
Expected behaviour
Should not mark the (first) cast as unnecessary. (The second cast is there because of Psalm config)
Environment details
Windows 11, PhpStorm 2024.2.3