syntax error, unexpected token “implements”

Description

implements is a PHP token, which appears inside a class or enum structure. It cannot be find anywhere else.

Example

<?php

X extends Y { }

enum Y extends Z { }

?>

Solutions

  • Check that a class or an enum have been started.