Skip to content

Commit

Permalink
fix: fixing instance not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Jan 22, 2025
1 parent fc81780 commit 7477a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SchedulerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function run(): void

public function __destruct()
{
if ($this->instance && ! $this->instance->wasRecentlyCreated) {
if (isset($this->instance) && $this->instance && ! $this->instance->wasRecentlyCreated) {
$this->instance->save();
}
}
Expand Down

0 comments on commit 7477a34

Please sign in to comment.