Unclosed ‘(’

Description

The closing parenthesis is missing.

It might be missing, as in the first two examples; it might also be inside a string, as in the third example: the double quote is not closed, which includes the closing square bracket, and makes it missing.

Example

<?php

// These should be at the end of a code, without ; not ?>
foo($b, 3
$a = 10 * (2 + 3

// closing parenthesis is in the double quoted string
$b = 'c' . ( "d . $e)

?>

Solutions

  • Check that the square brackets are balanced.

  • Check that the closing square brackets are not hidden in a string.