It can also be caused by the empty PHP file, which should have class declaration with all it's properties and methods. I had this issue and i couldn't figure out what was the problem until i saw the file size.. However i never changed that while which was suddenly empty.. So it might be caused by the IDE or server..