Skip to content

Commit 75cabc6

Browse files
authored
Merge pull request #553 from clue-labs/getmetadata
[1.x] Add missing `?string` parameter type for `getMetadata()` with PSR-7 v2
2 parents 37f1315 + 0d6244c commit 75cabc6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/Io/EmptyBodyStream.v2.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function getContents(): string
136136
}
137137

138138
/** @ignore */
139-
public function getMetadata($key = null)
139+
public function getMetadata(?string $key = null)
140140
{
141141
return ($key === null) ? array() : null;
142142
}

‎src/Io/HttpBodyStream.v2.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function getContents(): string
154154
}
155155

156156
/** @ignore */
157-
public function getMetadata($key = null)
157+
public function getMetadata(?string $key = null)
158158
{
159159
return null;
160160
}

0 commit comments

Comments
 (0)