syntax error, unexpected token “)”, expecting “=”¶
Description¶
In this case, the =
is missing, and the 1 has been merged into the strict_types
to become an identifier. PHP expects a =
after this identifier.
Example¶
<?php
declare(strict_types1);
?>
Solutions¶
Add
=
afterstrict_types
.