wimverstuyf / php-coda-parser

PHP parser for Belgian CODA banking files
GNU Lesser General Public License v3.0
41 stars 25 forks source link

Parse error #22

Closed dono1309 closed 2 years ago

dono1309 commented 2 years ago

Hello,

i've this error. Can you help me ? Parse error: syntax error, unexpected ')' in /var/www/indigona/logi_print/vendor/codelicious/php-coda-parser/src/StatementParsers/TransactionParser.php on line 108

thanks

wimverstuyf commented 2 years ago

Hi,

Which version of PHP are you using? At this line there is an extra comma just before the ')' which is allowed in more recent versions of PHP but not in older versions. So this might be the problem.

        $transactionCode,
    );
dono1309 commented 2 years ago

Hello, It's the problem, i remove the comma and its ok my version of php : PHP 7.2.34-23+0~20210701.63+debian10~1.gbpd7cd48 (cli) (built: Jul 1 2021 16:12:59) ( NTS )

Thanks :)

wimverstuyf commented 2 years ago

Ok great! The comma has been removed on the master branch.