Skip to content

Commit 1065a1e

Browse files
wouterjnicolas-grekas
authored andcommitted
Add remaining missing return types to safe methods
1 parent da0c327 commit 1065a1e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Response/AsyncResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ public function getInfo(string $type = null): mixed
123123
return $this->info + $this->response->getInfo();
124124
}
125125

126+
/**
127+
* @return resource
128+
*/
126129
public function toStream(bool $throw = true)
127130
{
128131
if ($throw) {

Response/CommonResponseTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public function toArray(bool $throw = true): array
100100
return $content;
101101
}
102102

103+
/**
104+
* @return resource
105+
*/
103106
public function toStream(bool $throw = true)
104107
{
105108
if ($throw) {

0 commit comments

Comments
 (0)