Skip to content

change from deprecated ...set_option to set_options #804

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Spirit-act
Copy link

@Spirit-act Spirit-act commented Apr 23, 2025

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

The Change is only slightly backwards compatible, because the new function was introduced in PHP8.3.

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.

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 <[email protected]>
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.

1 participant