We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 155c7e1 commit 4890206Copy full SHA for 4890206
src/Trigger.php
@@ -24,6 +24,7 @@
24
use MySQLReplication\MySQLReplicationFactory;
25
use ReflectionException;
26
use ReflectionMethod;
27
+use Throwable;
28
29
class Trigger
30
{
@@ -200,7 +201,12 @@ public function getCurrent(): ?BinLogCurrent
200
201
return null;
202
}
203
- return unserialize($cache) ?: null;
204
+ try {
205
+ return unserialize($cache);
206
+ } catch (Throwable $e) {
207
+ $this->clearCurrent();
208
+ return null;
209
+ }
210
211
212
/**
0 commit comments