syntax error, unexpected token “=”, expecting identifier¶
Description¶
In this error, the declared optin name value has been removed. It could be strict_types
, ticks
or encoding
.
Example¶
<?php
declare(= 1);
declare(= 'iso-8859-1');
?>
Solutions¶
Add
strict_types
before the=
operator.Add
ticks
before the=
operator.Add
encoding
before the=
operator.Remove the
declare
call.