syntax error, unexpected token “use”, expecting “,” or “;”¶
Description¶
The previous use
command was not properly finished with a semi-colon. It could also be
Example¶
<?php
use A as B
use C as D;
?>
Solutions¶
Add another
use
case, with a comma, and then finish the instruction with;
.Finish the previous
use
case, with a semi colon;
.Remove the next
use
keyword, and replace it with a comma.