Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crontab/src/Annotaion/Mapping/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Cron
public function __construct(array $values)
{
if (isset($values['value'])) {
$this->value = $values['value'];
$this->value = str_replace('\\', "", $values['value']);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/crontab/src/CrontabExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected static function checkCronItem(string $value, int $rangeStart, int $ran
return true;
}
if (strpos($value, '/') !== false) {
str_replace('*', '0', '$value');
$value=str_replace('*', '0', $value);
[$start, $end] = explode('/', $value);
if (!ctype_digit($start) || !ctype_digit($end)) {
return false;
Expand Down Expand Up @@ -146,7 +146,7 @@ public static function parseCronItem(string $cronExpress): array
$times[$k] = $item;
}
if (strpos($item, '/') !== false) {
str_replace('*', '0', '$value');
$item=str_replace('*', '0', $item);
[$start, $end] = explode('/', $item);
while ($start <= $maxLimit[$k]) {
$times[$k][] = $start;
Expand Down