Bug report
It appears that type aliases get resolved from the scope of the class they are used in, and not from the trait's main docblock.
Code snippet that reproduces the problem
https://phpstan.org/r/fb90214f-4b8d-4f62-87b9-1680ee2afcfa
Expected output
No error.