Skip to content

Commit b033def

Browse files
committed
stream: fix errors function types
1 parent 8dce66c commit b033def

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

Zend/Optimizer/zend_func_infos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static const func_info_t func_infos[] = {
596596
F1("stream_get_line", MAY_BE_STRING|MAY_BE_FALSE),
597597
F1("stream_resolve_include_path", MAY_BE_STRING|MAY_BE_FALSE),
598598
F1("stream_get_wrappers", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
599-
F1("stream_last_errors", MAY_BE_OBJECT),
599+
F1("stream_last_errors", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_OBJECT),
600600
F1("stream_get_transports", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_STRING),
601601
#if defined(HAVE_GETTIMEOFDAY)
602602
F1("uniqid", MAY_BE_STRING),

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3556,7 +3556,7 @@ function stream_get_wrappers(): array {}
35563556

35573557
/**
35583558
* @refcount 1
3559-
* @return list<StreamError>
3559+
* @return array<int, StreamError>
35603560
*/
35613561
function stream_last_errors(): array {}
35623562

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/basic_functions_decl.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main/streams/stream_errors.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ enum StreamErrorStore
155155

156156
class StreamException extends Exception
157157
{
158-
/** @var list<StreamError> */
158+
/** @var array<int, StreamError> */
159159
private array $errors = [];
160160

161-
/** @return list<StreamError> */
161+
/** @return array<int, StreamError> */
162162
public function getErrors(): array {}
163163
}

main/streams/stream_errors_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main/streams/stream_errors_decl.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)