Skip to content
Browse files

fix return type of stream_bucket_new (#2434)

the function returns `object` since 2003 in
php/php-src@c4a491e and
`stream_bucket_append()` is type hinted to take `object` too.

This fixes #2430
  • Loading branch information
pilif authored and muglug committed Dec 7, 2019
1 parent 3c52102 commit 528180998e3b9dfd9700ce58340ca576fd1c1e65
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/CallMap.php
'strcspn' => ['int', 'str'=>'string', 'mask'=>'string', 'start='=>'int', 'length='=>'int'],
'stream_bucket_append' => ['void', 'brigade'=>'resource', 'bucket'=>'object'],
'stream_bucket_make_writeable' => ['object', 'brigade'=>'resource'],
'stream_bucket_new' => ['resource|false', 'stream'=>'resource', 'buffer'=>'string'],
'stream_bucket_new' => ['object|false', 'stream'=>'resource', 'buffer'=>'string'],
'stream_bucket_prepend' => ['void', 'brigade'=>'resource', 'bucket'=>'object'],
'stream_context_create' => ['resource', 'options='=>'array', 'params='=>'array'],
'stream_context_get_default' => ['resource', 'options='=>'array'],

0 comments on commit 5281809

Please sign in to comment.
You can’t perform that action at this time.