You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested our SDK with PHP Version 5.3.8:
It looks like this PHP version does not support the used array declaration
public function token($paymentType, array $additional = [])
public function createTokenPayment($pType, array $additional = [])
public function acceptPayment($type, $tid, $payment = [], $additional = [])
Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\sdk\src\Mpay24.php on line 189
You right this annotation is only supported in PHP 5.4+.... I also agree that only the new PHP Version should be supported, this old PHP versions are also a kind of security risk.
PHP 5.3 is EOL since 14 Aug 2014 and I assume that now one that use mpay24-php 4.0.0+ is using this old PHP version otherwise there would be a lot of complains already.
Tested our SDK with PHP Version 5.3.8:
It looks like this PHP version does not support the used array declaration
public function token($paymentType, array $additional = [])
public function createTokenPayment($pType, array $additional = [])
public function acceptPayment($type, $tid, $payment = [], $additional = [])
Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\sdk\src\Mpay24.php on line 189
I think we should only support the supported versions: http://php.net/supported-versions.php
The text was updated successfully, but these errors were encountered: