Skip to content

Commit 5107a56

Browse files
committed
Fix casting string on filtered stream not calling getContents
1 parent 373bcb7 commit 5107a56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Encoding/FilteredStream.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ public function getContents()
127127
return $buffer;
128128
}
129129

130+
/**
131+
* {@inheritdoc}
132+
*/
133+
public function __toString()
134+
{
135+
return $this->getContents();
136+
}
137+
130138
/**
131139
* Returns the read filter name.
132140
*

0 commit comments

Comments
 (0)