Skip to content

Commit f8c67b4

Browse files
committed
thank you scrutinizer
1 parent 8ac85c9 commit f8c67b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function parseToString(): string
8585
*/
8686
private function parseJson(int $type): void
8787
{
88+
$results = [];
8889
if (self::SMALL_OBJECT === $type) {
8990
$results[self::OBJECT] = $this->parseArrayOrObject(self::OBJECT, self::SMALL_OFFSET_SIZE);
9091
} else if (self::LARGE_OBJECT === $type) {

src/MySQLReplication/JsonBinaryDecoder/JsonBinaryDecoderValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(
2222
$this->offset = $offset;
2323
}
2424

25-
public function getOffset(): int
25+
public function getOffset(): ?int
2626
{
2727
return $this->offset;
2828
}

0 commit comments

Comments
 (0)