class ContextSupport {
private static $proppertySupports = array();
private function __construct() {
}
public static function getSupport(Component $comp) {
$t = self::proppertySupports[$comp];
if (is_null($t)) {
$t = ContextSupport::proppertySupports;
$t[$comp] = new ProppertySupport();
}
return $t[$comp];
}
}
ошибка такая
Parse error: syntax error, unexpected '[' in мой_путь\granat\frontend\ContextSupport.php on line 28