Skip to content

Commit

Permalink
Fix for variable static
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat committed Apr 24, 2021
1 parent 2ec3f98 commit 7a0e123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public function setSetting(string $setting, int $value): self
':setting' => [$setting, 'string'],
':value' => [$value, 'int'],
]) === true) {
self::{'$'.$setting} = $value;
self::${$setting} = $value;
return $this;
} else {
throw new \UnexpectedValueException('Failed to set setting `'.$setting.'` to '.$value);
Expand Down

0 comments on commit 7a0e123

Please sign in to comment.