Skip to content

Commit e2d1e1f

Browse files
authored
stream_context_set_option(): fix incorrect parameter name (#4945)
I vaguely remember these signatures are normally updated automatically from the stub files ? Not sure what happened here, but this one is clearly wrong. Page: https://www.php.net/manual/en/function.stream-context-set-option.php Signature as per the stub: https://github.com/php/php-src/blob/40a42cffd81b7f01fed25b3f7d02cb4d2ead700d/ext/standard/basic_functions.stub.php#L3384C78-L3384C103 Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
1 parent 4fbe069 commit e2d1e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/stream/functions/stream-context-set-option.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<type>bool</type><methodname>stream_context_set_option</methodname>
1313
<methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam>
1414
<methodparam><type>string</type><parameter>wrapper</parameter></methodparam>
15-
<methodparam><type>string</type><parameter>option</parameter></methodparam>
15+
<methodparam><type>string</type><parameter>option_name</parameter></methodparam>
1616
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
1717
</methodsynopsis>
1818
<para>
@@ -53,7 +53,7 @@
5353
</listitem>
5454
</varlistentry>
5555
<varlistentry>
56-
<term><parameter>option</parameter></term>
56+
<term><parameter>option_name</parameter></term>
5757
<listitem>
5858
<para>
5959
The name of the option.

0 commit comments

Comments
 (0)