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
|
* @param resource|string $resource A file system pointer resource or
|
||||||
* string
|
* string
|
||||||
*/
|
*/
|
||||||
public function __construct($resource)
|
public function __construct($resource = "")
|
||||||
{
|
{
|
||||||
if (is_resource($resource) && get_resource_type($resource) === "stream") {
|
if (is_resource($resource) && get_resource_type($resource) === "stream") {
|
||||||
$this->resource = $resource;
|
$this->resource = $resource;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue