Skip to content

Commit 7477a34

Browse files
committed
fix: fixing instance not initialized
1 parent fc81780 commit 7477a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/SchedulerManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function run(): void
2424

2525
public function __destruct()
2626
{
27-
if ($this->instance && ! $this->instance->wasRecentlyCreated) {
27+
if (isset($this->instance) && $this->instance && ! $this->instance->wasRecentlyCreated) {
2828
$this->instance->save();
2929
}
3030
}

0 commit comments

Comments
 (0)