PHP 7.4 Deprecation warnings
RickKukiela opened this issue · 1 comments
RickKukiela commented
Trying to build with the new 2.0.0 sdk against a php 7.4 box and I'm getting deprecation notices everywhere:
PHP Deprecated Warning 'yii\base\ErrorException' with message 'Cannot use "parent" when current class scope has no parent'
in C:\Projects\premier\vendor\authorizenet\authorizenet\lib\net\authorize\api\contract\v1\MerchantAuthenticationType.php:291
This is just one example.
I tried changing return array_merge(parent::jsonSerialize(), $values);
to return array_merge($this->jsonSerialize(), $values);
Which should work but just ends up causing an endless loop max nesting of 256 for the recursion. Didn't have time to keep futzing with it so I just disabled deprecation warnings for this controller.
Please update the sdk to be compatible with php 7.4
Thanks!
RickKukiela commented
Closing this because I meant to put this issue in the main repo.