-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
unexpected identifier "Closure" #3616
Comments
ZipStream v3 requires PHP You can force the dependency back to |
A similar problem was solved via #3615 (comment) |
Had this issue and your suggested solution helped me |
Installed PHP version 8.2.8 with Codeigniter 4 Getting error "syntax error, unexpected identifier "Closure", expecting variable " |
Install PHP VERSION >= 8.2 . I hope your problem will be solved ( For me it worked ) |
Closed as duplicate of #3615. |
works like a charm |
Thanks @maennchen ! works like a charm |
This is:
I have a project that requires the use of exported excel and am learning PhpSpreadsheet, but for some reason it always fails to execute in my projects.
Error message
ParseError: syntax error, unexpected identifier "Closure", expecting variable in
/wwwroot/admin/vendor/maennchen/zipstream-php/src/ZipStream.php:111
php 8.02+ phpspreadsheet 1.29
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Which versions of PhpSpreadsheet and PHP are affected?
ubuntu 20.04.6
PHP 8.02
PhpSpreadsheet 1.29
The text was updated successfully, but these errors were encountered: