syntax error, unexpected ‘;’, expecting ‘{’¶
Description¶
The error message comes from the possibility to use new lines inside fully qualified names, that was possible until PHP 8.0.
Example¶
<?php
\A
\B
\C
;
?>
Solutions¶
Remove the new lines and whitespaces inside a fully qualified name.