Open Elgorm opened 8 years ago
Hi, Thank you for reporting the error. What version of PHP do you have ?
Normally, 8 line looks like this:
public $sourcePath = __DIR__ . '/assets';
I'm having the same error.
Running php 5.5 Apache 2 and Yii 2.09
Thank you for the information. I will try to make a fixbug.
syntax error, unexpected '.', expecting ',' or ';' vendor\pceuropa\yii2-menu\MenuAsset.php at line 8
1 <?php 2 namespace pceuropa\menu; 3
4 use yii\web\AssetBundle; 5
6 class MenuAsset extends AssetBundle 7 { 8 public $sourcePath = DIR . '/assets'; 9 public $baseUrl = '@web'; 10 public $js = [ 11 'js/Sortable.min.js', 12 ]; 13 public $depends = [ 14 'yii\web\YiiAsset', 15 'yii\bootstrap\BootstrapAsset', 16 ]; 17 }