CI #79
Annotations
4 warnings
src/DI/SchedulerExtension.php#L110
Escaped Mutant for Mutator "FalseValue":
@@ @@
$value = substr($value, 1);
} elseif (str_starts_with($value, '@')) {
// @Yearly - service reference
- return false;
+ return true;
}
return CronExpression::isValidExpression($value);
}, 'Valid cron expression'), 'callback' => Expect::anyOf(
|
src/DI/SchedulerExtension.php#L125
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
/* @infection-ignore-all */
Expect::array()->min(2)->max(2),
Expect::type(Statement::class)
- )->default(null), 'job' => DefinitionsLoader::schema()->default(null), 'repeatAfterSeconds' => Expect::int(0)->min(0)->max(30), 'timeZone' => Expect::anyOf(Expect::string(), Expect::null())->assert(static function (?string $timeZone): bool {
+ )->default(null), 'job' => DefinitionsLoader::schema()->default(null), 'repeatAfterSeconds' => Expect::int(0)->min(-1)->max(30), 'timeZone' => Expect::anyOf(Expect::string(), Expect::null())->assert(static function (?string $timeZone): bool {
if ($timeZone === null) {
return true;
}
|
src/DI/SchedulerExtension.php#L126
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
/* @infection-ignore-all */
Expect::array()->min(2)->max(2),
Expect::type(Statement::class)
- )->default(null), 'job' => DefinitionsLoader::schema()->default(null), 'repeatAfterSeconds' => Expect::int(0)->min(0)->max(30), 'timeZone' => Expect::anyOf(Expect::string(), Expect::null())->assert(static function (?string $timeZone): bool {
+ )->default(null), 'job' => DefinitionsLoader::schema()->default(null), 'repeatAfterSeconds' => Expect::int(0)->min(0)->max(31), 'timeZone' => Expect::anyOf(Expect::string(), Expect::null())->assert(static function (?string $timeZone): bool {
if ($timeZone === null) {
return true;
}
|
src/DI/SchedulerExtension.php#L132
Escaped Mutant for Mutator "TrueValue":
@@ @@
Expect::type(Statement::class)
)->default(null), 'job' => DefinitionsLoader::schema()->default(null), 'repeatAfterSeconds' => Expect::int(0)->min(0)->max(30), 'timeZone' => Expect::anyOf(Expect::string(), Expect::null())->assert(static function (?string $timeZone): bool {
if ($timeZone === null) {
- return true;
+ return false;
}
return in_array($timeZone, timezone_identifiers_list(), true);
}, 'Valid timezone')])->assert(static function (stdClass $values): bool {
|
This job succeeded
Loading