Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/StreamInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ public function getContents();
*
* @link http://php.net/manual/en/function.stream-get-meta-data.php
* @param string $key Specific metadata to retrieve.
* @return array|mixed|null Returns an associative array if no key is
* @return array<string, mixed>|mixed|null Returns an associative array if no key is
* provided. Returns a specific key value if a key is provided and the
* value is found, or null if the key is not found.
* @phpstan-return ($key is null ? array<string, mixed> : mixed|null)
*/
public function getMetadata($key = null);
}