MIR1400
ParseError
A PHP file could not be parsed due to a syntax error, or uses syntax that the target PHP version does not have. Code that parses but that PHP rejects at compile time is reported as CompileError.
The message ends with the parser’s identifier for the error, e.g. [expected], [version-too-low] or [invalid-assign-target]. The same identifier is the code field of the issue in --format json. Unlike the message wording, it stays the same between parser releases.
Example
Section titled “Example”<?phpfunction broken( { // missing parameter list}How to fix
Section titled “How to fix”Fix the syntax error in the file. Run php -l file.php for a quick syntax check.
