TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

small PHP-Error in main.functions.php

Open imadevel opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. 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)

imadevel avatar May 22 '23 19:05 imadevel