-
Notifications
You must be signed in to change notification settings - Fork 17
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
Deprecated Functionality: Optional parameter #34
base: master
Are you sure you want to change the base?
Deprecated Functionality: Optional parameter #34
Conversation
@manu-krishna thank you for this PR. |
If you try installing the module in magento 2.4.5 version which runs on php8, you will get the error.
so static function buildAuthenticationObject($authentication = null, $args, $expectedArgCount) on line number 268 in simplify-magento-module/lib/simplifycommerce-sdk-php/lib/Simplify/PaymentsApi.php required parameters $args and $expectedArgCount follows the optional parameter $authentication When I checked abouut switching the parameter position, found that it will need updates in too many places hence made all parameters with default optional value. This solved issue during setup:di:compile. |
@manu-krishna Thanks for the update. Can you please let us know at which step or which specific steps the error is appearing? We installed the module on Magento 2.4.5 + PHP 8.1 environment but we can't see the error. |
@harshitshah20 I am getting the error when fresh installing the module code and running setup:di:compile |
@manu-krishna Thanks for the update. We will look further into this. |
any progress on this one ? |
@agelospanagiotakis No response or merge from their side. I think they will not merge pull requests from anyone other than their team. I applied the fix in my environment as i cannot wait for them to fix this. However this module has too much issues in latest version of magento. Sometimes the popup modal won't even show to enter card detais. Some ko-js error in console. |
Fix for Deprecated Functionality: Optional parameter $authentication declared before required parameter $expectedArgCount is implicitly treated as a required parameter
For support in magento 2.4.5 version with php 8+