PHPStan says that the assert is always true: https://phpstan.org/r/546875e0-af47-46a6-aec9-c7667f627676 But that's incorrect: https://3v4l.org/bqNRq