syntax error, unexpected token “extends”¶
Description¶
extends is a PHP token, which appears inside a class or interface structure. It cannot be find anywhere else.
Example¶
<?php
X extends Y { }
enum Y extends Z { }
?>
Solutions¶
Check that a
classor aninterfacehave been started.