Error: https://psalm.dev/r/ffd63ee6ad When the type gets declared, suddenly no error anymore: https://psalm.dev/r/2eeef62586 @LukasReschke could you perhaps check this as the original PR for this feature is from you? https://github.com/vimeo/psalm/issues/4648