Skip to content

Commit 2183598

Browse files
committed
use benevolent union for stream_get_contents() to prevent strict-rule errors
1 parent 1f150cc commit 2183598

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

resources/functionMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11661,7 +11661,7 @@
1166111661
'stream_filter_prepend' => ['resource|false', 'stream'=>'resource', 'filtername'=>'string', 'read_write='=>'int', 'params='=>'mixed'],
1166211662
'stream_filter_register' => ['bool', 'filtername'=>'string', 'classname'=>'string'],
1166311663
'stream_filter_remove' => ['bool', 'stream_filter'=>'resource'],
11664-
'stream_get_contents' => ['string|false', 'source'=>'resource', 'maxlen='=>'int', 'offset='=>'int'],
11664+
'stream_get_contents' => ['(string|false)', 'source'=>'resource', 'maxlen='=>'int', 'offset='=>'int'],
1166511665
'stream_get_filters' => ['list<string>'],
1166611666
'stream_get_line' => ['string|false', 'stream'=>'resource', 'maxlen'=>'int', 'ending='=>'string'],
1166711667
'stream_get_meta_data' => ['array{timed_out:bool,blocked:bool,eof:bool,unread_bytes:int,stream_type:string,wrapper_type:string,wrapper_data:mixed,mode:string,seekable:bool,uri?:string,mediatype?:string,base64?:bool}', 'fp'=>'resource'],

src/Type/Php/StreamGetContentsFunctionReturnTypeExtension.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)