Question: phpstorm is not a valid namespace?
Answer: Sometimes PhpStorm doesn't correctly detect the appropriate namespace for your source directories. You could try to fix this by going into Settings > Project: xxx > Directories , clicking the little 'P' next to your src/ directory and setting a root namespace for your project.