WordPress\AiClientDependencies\Nyholm\Psr7
UploadedFile::getStream
Метод класса: UploadedFile{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$UploadedFile = new UploadedFile(); $UploadedFile->getStream(): StreamInterface;
Код UploadedFile::getStream() UploadedFile::getStream WP 7.1.2
public function getStream(): StreamInterface
{
$this->validateActive();
if ($this->stream instanceof StreamInterface) {
return $this->stream;
}
if (\false === $resource = @\fopen($this->file, 'r')) {
throw new \RuntimeException(\sprintf('The file "%s" cannot be opened: %s', $this->file, \error_get_last()['message'] ?? ''));
}
return Stream::create($resource);
}