If after PHP upgrade you're getting error "PHP Fatal error: Cannot declare class error, because the name is already in use ...", you will have to rename your "error" class.
Since PHP 7 classname "Error" is predefined and used internally.
(PHP 7)
Error is the base class for all internal PHP errors.
If after PHP upgrade you're getting error "PHP Fatal error: Cannot declare class error, because the name is already in use ...", you will have to rename your "error" class.
Since PHP 7 classname "Error" is predefined and used internally.
With PHP 7.0.0 if you attempt to reuse the Error() class you will see a 500 Internal Server Error, it does not report in the logs that the class is already in use or internally reserved, i went round and around before i discovered this as the logic to my code was syntactically correct.