サイトで PHP デバッガーを有効にするために、このライブラリhttps://github.com/nette/tracyを使用しようとしています。
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を含めるだけでよいと言われています...