Tracy调试库抛出语法错误

时间:2016-07-12 12:50:38

标签: php syntax nette

我正在尝试使用此库https://github.com/nette/tracy在我的网站上启用PHP debuger。

我已经在我的应用中下载了src文件夹并添加了tracy.php,但现在我收到了此错误:

Parse error: syntax error, unexpected '[' in /data/web/virtuals/.../src/Tracy/Bar.php on line 17

这就是Bar.php在第17行看起来的样子:

<?php

/**
 * This file is part of the Tracy (https://tracy.nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */

namespace Tracy;


/**
 * Debug Bar.
 */
class Bar
{
    /** @var IBarPanel[] */
    private $panels = [];

我做错了什么?我需要其他东西来运行Tracy吗?在https://tracy.nette.org/他们说你需要做的就是包括tracy.php ......

0 个答案:

没有答案