Skip to content

Commit 086ef37

Browse files
committed
Removed base64 from compressing serializer
1 parent f0b0954 commit 086ef37

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/core/etl/src/Flow/Serializer/CompressingSerializer.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function serialize(object $serializable) : string
2828
// @codeCoverageIgnoreEnd
2929
}
3030

31-
return \base64_encode($content);
31+
return $content;
3232
}
3333

3434
public function unserialize(string $serialized, string $class) : object
@@ -39,15 +39,7 @@ public function unserialize(string $serialized, string $class) : object
3939
// @codeCoverageIgnoreEnd
4040
}
4141

42-
$content = \base64_decode($serialized, true);
43-
44-
if (false === $content) {
45-
// @codeCoverageIgnoreStart
46-
throw new \RuntimeException('Unable to decode serialized data.');
47-
// @codeCoverageIgnoreEnd
48-
}
49-
50-
$content = \gzuncompress($content);
42+
$content = \gzuncompress($serialized);
5143

5244
if (false === $content) {
5345
// @codeCoverageIgnoreStart

0 commit comments

Comments
 (0)