Unclosed '(' does not match ']'

Description

This is a variation of the unbalanced parenthesis or square brackets. Here, the parenthesis were not closed before the nesting square brackets was closed.

Example

<?php

$array[foo(1,2];

?>

Solutions

  • Close the parenthesis before closing the square bracket.