-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST) #2
Comments
I think this is due to the version of php you are using, what version is it? |
I have the same problem. My VERSION of PHP is 7.4.6 |
Guys the line in the error is this one https://github.com/dcasia/nova-dashboard/blob/master/src/NovaDashboard.php#L13 are you sure you are using php 7.4? It should support property type hint |
I am sure the version is 7.4.6. What version do you have? |
Im currently on: PHP 7.4.8 (cli) (built: Jul 9 2020 23:47:36) ( NTS ) However it should work since PHP 7.4, are you sure that your host machine is using 7.4 but your web server is actually using an older version? ---edit I have just rebuild my docker images using |
works here with php 7.4.5 |
::Composer\Autoload\includeFile
vendor/digital-creative/nova-dashboard/src/NovaDashboard.php:13
The text was updated successfully, but these errors were encountered: