marius-wieschollek / passwords

A simple, yet feature rich password manager for Nextcloud
GNU Affero General Public License v3.0
215 stars 45 forks source link

ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW) HelperService.php:117 #496

Closed patricksebastien closed 2 years ago

patricksebastien commented 2 years ago

System Information

Server:

 Nextcloud Version: 23.0.3
 PHP Version: 8.0
 Database and Version: Mysql
 Server OS and Version: Linux
 Passwords Version: 2022-03-20

Steps to reproduce

I am not able to run any occ command, for example: occ passwords:system:report debug

An unhandled exception has been thrown:
ParseError: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /.../nextcloud/app/apps/passwords/lib/Services/HelperService.php:117
Stack trace:
#0 /.../nextcloud/app/lib/composer/composer/ClassLoader.php(428): Composer\Autoload\includeFile()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 [internal function]: spl_autoload_call()
#3 /.../nextcloud/app/lib/private/AppFramework/Utility/SimpleContainer.php(112): ReflectionClass->__construct()
...
patricksebastien commented 2 years ago

Oups was using PHP 7.4..... sorry for the noise. Closing.