laravel-enso / enso

Laravel Vue SPA, Bulma themed. For demo login use `admin@laravel-enso.com` & `password` -
https://www.laravel-enso.com
MIT License
1.08k stars 277 forks source link

Fresh installation, PHP syntax error(s) #284

Closed kplgr closed 4 years ago

kplgr commented 4 years ago

This is a bug (?).

Prerequisites

Description

I am following the documentation at https://docs.laravel-enso.com/ , trying to setup a fresh install. When I try to open the website, I get a PHP error that says

Symfony\Component\Debug\Exception\FatalThrowableError syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)

The problem seems to be at vendor/laravel-enso/calendar/src/UserServiceProvider.php:14

Is this some kind of PHP related problem ? I don't see anything wrong with line :14 in that file... If I comment that line out for debugging, then I get another error at some point where anonymous functions are used. Maybe some configuration steps are required but not explicitly stated in the documentation, in order for enso to work out of the box?

heyner29 commented 4 years ago

What version of PHP do you have installed?