Skip to content

Commit 483b042

Browse files
committed
With respect to comments. :)
1 parent d65e514 commit 483b042

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

generated/curl.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,17 +3109,6 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
31093109
*
31103110
*
31113111
*
3112-
* CURLOPT_XFERINFOFUNCTION
3113-
*
3114-
* A callback accepting two parameters.
3115-
* Has a similar purpose as CURLOPT_PROGRESSFUNCTION but is more modern
3116-
* and the preferred option from cURL.
3117-
*
3118-
*
3119-
* Added in 7.32.0. Available as of PHP 8.2.0.
3120-
*
3121-
*
3122-
*
31233112
*
31243113
*
31253114
*

generated/stream.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function stream_copy_to_stream($from, $to, int $length = null, int $offset = 0):
8787
* @throws StreamException
8888
*
8989
*/
90-
function stream_filter_append($stream, string $filtername, int $read_write = null, mixed $params = null)
90+
function stream_filter_append($stream, string $filtername, int $read_write = null, $params = null)
9191
{
9292
error_clear_last();
9393
if ($params !== null) {
@@ -123,7 +123,7 @@ function stream_filter_append($stream, string $filtername, int $read_write = nul
123123
* read_write parameter to override this behavior.
124124
* See stream_filter_append for an example of
125125
* using this parameter.
126-
* @param array $params This filter will be added with the specified params
126+
* @param mixed $params This filter will be added with the specified params
127127
* to the beginning of the list and will therefore be
128128
* called first during stream operations. To add a filter to the end of the
129129
* list, use stream_filter_append.
@@ -136,7 +136,7 @@ function stream_filter_append($stream, string $filtername, int $read_write = nul
136136
* @throws StreamException
137137
*
138138
*/
139-
function stream_filter_prepend($stream, string $filtername, int $read_write = null, array $params = null)
139+
function stream_filter_prepend($stream, string $filtername, int $read_write = null, $params = null)
140140
{
141141
error_clear_last();
142142
if ($params !== null) {

generator/config/CustomPhpStanFunctionMap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@
3838
'fgetcsv' => ['array|false|null', 'fp'=>'resource', 'length='=>'0|positive-int', 'delimiter='=>'string', 'enclosure='=>'string', 'escape='=>'string'], //phpstan default return type is too hard to analyse
3939
//todo: edit the reader to turn 0|1 into int
4040
'preg_match' => ['int|false', 'pattern'=>'string', 'subject'=>'string', '&w_subpatterns='=>'string[]', 'flags='=>'int', 'offset='=>'int'], //int|false instead of 0|1|false
41+
'stream_filter_prepend' => ['resource', 'stream' => 'resource', 'filtername' => 'string', 'read_write' => 'int', 'params' => 'mixed'], // params mixed instead of array
42+
'stream_filter_append' => ['resource', 'stream' => 'resource', 'filtername' => 'string', 'read_write' => 'int', 'params' => 'mixed'], // params mixed instead of array
4143
];

0 commit comments

Comments
 (0)