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

Fix "Unknown named parameter" PHP 8 error #347

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

maxime-aknin
Copy link
Contributor

@maxime-aknin maxime-aknin commented Jan 23, 2023

Description

PHP 8 has named arguments, using the "formatted" argument name in newInstanceArgs method seems to trigger "Unknown named parameter error".

@phonglynosto
Copy link
Contributor

phonglynosto commented Jun 8, 2023

Hi !

Thank you for your contribution, we would like to ask for more details regarding to the version of Prestashop and Nosto module which are you using. I suppose you are using Prestashop 8+ with PHP 8+ but it is better that we want to have confirmation from you.

@phonglynosto phonglynosto self-requested a review June 8, 2023 11:45
@phonglynosto
Copy link
Contributor

I have verified both in PHP 7 and 8, it can be merged after all checks above passed

PHP 8 has named arguments, using the "formatted" argument name in `newInstanceArgs` method seems to trigger "Unknown named parameter error".
@phonglynosto phonglynosto merged commit 0232572 into Nosto:develop Jun 8, 2023
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

Successfully merging this pull request may close these issues.

2 participants