new Stream() with no arguments creates an empty temp steam
This commit is contained in:
parent
887b885eb9
commit
409ffe9371
|
|
@ -19,7 +19,7 @@ class Stream implements StreamInterface
|
|||
* @param resource|string $resource A file system pointer resource or
|
||||
* string
|
||||
*/
|
||||
public function __construct($resource)
|
||||
public function __construct($resource = "")
|
||||
{
|
||||
if (is_resource($resource) && get_resource_type($resource) === "stream") {
|
||||
$this->resource = $resource;
|
||||
|
|
|
|||
Loading…
Reference in New Issue