wasnt able to reduce the code further without loosing the error I want to show.
https://phpstan.org/r/eee45a6b-26d9-4145-b438-1ec50696ee23
unexpected is the
35 | Unreachable statement - code above always terminates.
error
initially occured in sabre-io/xml#173 (comment)