# Bug report When a function is in the same namespace as a trait it is not recognized in another namespace. ### Code snippet that reproduces the problem https://phpstan.org/r/c494b722-ab27-415e-bffe-92f1beb015a9 ### Expected output No error.