Skip to content
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 in Router.php #86

Open
pagodzik opened this issue Mar 23, 2021 · 1 comment
Open

syntax error unexpected array in Router.php #86

pagodzik opened this issue Mar 23, 2021 · 1 comment

Comments

@pagodzik
Copy link

pagodzik commented Mar 23, 2021

I have this error with PHP Version 7.3.2. Works good with 7.4.4.

`Fatal error
Uncaught exception: 'ParseError'

Message: 'syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)'

Stack trace:

#0 C:\wamp\www\flexim-hotesse-virtuelle\vendor\composer\ClassLoader.php(322): Composer\Autoload\includeFile('C:\wamp\www\fle...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Core\Router')
#2 C:\wamp\www\flexim-hotesse-virtuelle\public\index.php(33): spl_autoload_call('Core\Router')
#3 {main}
Thrown in 'C:\wamp\www\flexim-hotesse-virtuelle\Core\Router.php' on line 20`

What is missing here?

@daveh
Copy link
Owner

daveh commented Mar 23, 2021

It looks like an error with Composer - Composer requires PHP 7.4, so it won't work with 7.3.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants