I was using PHP 7.0.4 and everything was running smoothly and I just upgraded to PHP 7.0.8 and I started getting errors like this one all over the place.
Fatal error: Cannot declare class Plugins\Users\Plugin because the name is already in use in /var/www/html/plugins/Users/Plugin.php on line 8
Does anyone have any idea whats going on, I've been reading through the change logs but that's a patch update it should not break anything?
Additionally, if no solution is found to this problem, how can I downgrade back to 7.0.4? (I'm using ubuntu 16.04 and I just upgraded to the point release)
To sum the comments so far:
- I have tried disabling opcache this did not solve the problem
- I am using composer's autoloader - I am not using
require
orinclude
anywhere - This error is happening for a ton of classes, so it is clearly not a code issue (on my part), furthermore the code was working before I upgraded to 7.0.8