What are the common syntax errors to watch out for when writing PHP code for version 7?

One common syntax error to watch out for in PHP 7 is the use of the "static" keyword before a variable declaration outside of a class context. In PHP 7, this will result in a parse error. To fix this issue, simply remove the "static" keyword from the variable declaration.

// Incorrect usage of static keyword before variable declaration
static $variable = "value";

// Corrected code without the static keyword
$variable = "value";