syntax error, unexpected token “use”, expecting “{”¶
Description¶
The namespace command was now finished properly. It could be finished with a semi-colon ;, and use would be the next instruction. Or it could go be followed by a block of definition, that starts with an open curly bracket.
Example¶
<?php
namespace A\B\C
use D\E;
?>
Solutions¶
Finish the
namespacewith a semi colon.Add a block to the
namespace, that encompass theuseinstruction.