TeamPass
TeamPass copied to clipboard
small PHP-Error in main.functions.php
Steps to reproduce
- Start Update-Script or Install-Script
Expected behaviour
Script starts
Actual behaviour
No action but error-message: PHP Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /.../sources/main.functions.php on line 4143
Server configuration
Ubuntu 20.04
Web server: Apache, PHP 7.4
Database:
PHP version: PHP 7.4
Teampass version: 3.0.7 and 3.0.8
main.functions.php
function validateDataFields( string $table, array $dataFields, ): array
has to be changed to
function validateDataFields( string $table, array $dataFields ): array
(remove "," after array $dataFields)