Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpgClasses.php is not compatible with PHP 8+ #20

Open
samrollin1 opened this issue Oct 10, 2022 · 1 comment
Open

mpgClasses.php is not compatible with PHP 8+ #20

samrollin1 opened this issue Oct 10, 2022 · 1 comment

Comments

@samrollin1
Copy link

The file mpgClasses.php throws an error on PHP 8+ when count() is being passed a null variable. (lines 2619, 2604, etc..)

From the PHP docs:

count() will now throw [TypeError] on invalid countable types passed to the value parameter. (docs)

@ConnectGrid
Copy link

Truly a shame, eh? A major company like Moneris can't even maintain SDKs for their APIs. This one was last updated "5 months ago", but is still using PHP 4.x-style code!

The good news is there are several 3rd-party options you can choose from, which are actively maintained.

https://packagist.org/?query=moneris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants