Skip to content

Commit

Permalink
Fix the bug that must not be accessed before initialization (#346)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Sep 21, 2023
1 parent 8faad26 commit 35b99ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ class Consumer
{
use Logger;

protected ?string $name;
protected ?string $name = null;

private ?HealthMonitor $healthMonitor;
private ?HealthMonitor $healthMonitor = null;

private ?ServerMutexInterface $serverMutex;
private ?ServerMutexInterface $serverMutex = null;

private BinLogCurrentSnapshotInterface $binLogCurrentSnapshot;

Expand Down

0 comments on commit 35b99ea

Please sign in to comment.