syntax error, unexpected token “=”, expecting variable¶
Description¶
The name of the parameter was removed. The parameter name has the syntax of a variable, hence the expected variable
mentioned in the error.
Example¶
<?php
function foo( = 0) {}
?>
Solutions¶
Add the argument name.
Remove the parameter entirely.