change from deprecated ...set_option to set_options#804
Open
Spirit-act wants to merge 11 commits intogoogleads:mainfrom
Open
change from deprecated ...set_option to set_options#804Spirit-act wants to merge 11 commits intogoogleads:mainfrom
Spirit-act wants to merge 11 commits intogoogleads:mainfrom
Conversation
In php8.4 stream_context_set_option no longer supports the signature with two arguments. Therefor the alternative function stream_context_set_options needs to be used. source: https://www.php.net/manual/en/function.stream-context-set-option.php Also implicitly marking parameters as nullable is deprecated. Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
|
Looks like this will fix #805. Any estimate date when this will be merged? Thanks!! |
Merge branch 'main' into soap-php8.4 - remove 202408 - add 202505 - add fixes to 202505 Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
stream_context_set_options only exists since php8.3.0. This Commit intruces a check for the php version. If the version is greater or equal than 8.3.0 it uses stream_context_set_options. Otherwise it uses stream_context_set_option. Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
the php version id check for backwards compatibility had one digit to much. Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
|
Hey Any estimate date when this will be merged? Thanks!! |
- remove 202411 - add 202508 - adjust LineItem and LineItemSummary Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
Author
|
For anybody who needs it: I currently maintain a Fork on packagist until this is merged, or the error is fixed. |
Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
also fix in v202411 Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
replaced every "array $var = null" with "?array $var = null" Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
Signed-off-by: Spirit-act <16631523+Spirit-act@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In php8.4 stream_context_set_option no longer supports the signature with two arguments. Therefor the alternative function stream_context_set_options needs to be used.
source: https://www.php.net/manual/en/function.stream-context-set-option.php
Also implicitly marking parameters as nullable is deprecated.
The implicit nullable is only changed by files, which I use within my script, because only these I could validate.
Edit:
In the last commit a check for the PHP version was added. If the PHP version is greater or equal to PHP 8.3.0
stream_context_set_optionsis used. If the version is lowerstream_context_set_optionis used.It feels a bit ugly, but i did not find a better solution for backwards compatibility.