Skip to content

Conversation

@jobjen02
Copy link
Contributor

@jobjen02 jobjen02 commented Apr 25, 2024

An optional parameter must be defined after the required parameters. This has been required since php 8.1.
Due to this issue we encountered a PHP error.

See:
https://arc.net/l/quote/xqkamcmp

@jobjen02
Copy link
Contributor Author

jobjen02 commented Apr 26, 2024

I made the 3th param optional, this shouldn't break anything, since that param is not used within the closure. I also added the question mark after the $response, so if that param is null, null will be returned. The function is allowed to return null, I checked the Guzzle code for that case.

Please let me know if there is anything that i'm missing!

@jobjen02
Copy link
Contributor Author

jobjen02 commented May 4, 2024

Is someone able to pickup this small update?

Copy link
Contributor

@WoutervanderLoopNL WoutervanderLoopNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

@WoutervanderLoopNL
Copy link
Contributor

@casperbakker

@casperbakker casperbakker merged commit ac78f26 into picqer:main Jul 5, 2024
@casperbakker
Copy link
Member

Weird that our code does not complain about this, because we use PHP 8.3 for a while. But thanks for fixing.

jobjen02 pushed a commit to jobjen02/bol-retailer-php-client that referenced this pull request Jul 5, 2024
@casperbakker
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants