Bug report
Present only with a bleading edge enabled. I do not fully understand what phpstan tries to tell here and I belive there should be no error.
Code snippet that reproduces the problem
https://phpstan.org/r/66728891-b329-4df3-ab1c-c49238e10308
Expected output
no error