I accidentally got this error, in my case I had a class with the same name as the namespace. Renaming the class solved the problem.
I accidentally got this error, in my case I had a class with the same name as the namespace. Renaming the class solved the problem.