Skip to content

Commit

Permalink
fix compressed string writers
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Sep 9, 2021
1 parent 32eeba4 commit c6707ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IO/Writer/GZipCompressedStringWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class GZipCompressedStringWriter extends StringWriter
{
public function getStringData(): string
{
return zlib_encode(parent::getStringData(), ZLIB_ENCODING_DEFLATE);
return gzencode(parent::getStringData(), ZLIB_ENCODING_DEFLATE);
}
}
5 changes: 4 additions & 1 deletion src/IO/Writer/ZLibCompressedStringWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

class ZLibCompressedStringWriter extends StringWriter
{

public function getStringData(): string
{
return zlib_encode(parent::getStringData(), ZLIB_ENCODING_DEFLATE);
}
}

0 comments on commit c6707ea

Please sign in to comment.