Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 3, 2024

  • Standard:
    . Calling stream_context_set_option() with 2 arguments is deprecated.
    Use stream_context_set_options() instead.

Note: the PHP native deprecation notice recommends using the stream_context_set_options() function instead. This sniff, as it is, does not allow for recommending an alternative (other than passing the now required parameters). Support for including an alternative could be added if deemed a good idea.

Refs:

Related to #1589

…on of overloaded stream_context_set_option() signature (RFC)

> - Standard:
>  . Calling stream_context_set_option() with 2 arguments is deprecated.
>    Use stream_context_set_options() instead.

Note: the PHP native deprecation notice recommends using the `stream_context_set_options()` function instead.
This sniff, as it is, does not allow for recommending an alternative (other than passing the now required parameters).
Support for including an alternative could be added if deemed a good idea.

Refs:
* https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#stream_context_set_option
* php/php-src 12769
* php/php-src@2d05775
* https://www.php.net/stream_context_set_option

Related to 1589
@wimg wimg merged commit f2526dd into develop Feb 11, 2024
@wimg wimg deleted the php-8.4/optionaltorequired-stream-context-set-option branch February 11, 2024 20:20
@jrfnl jrfnl added the PHP: 8.4 label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants