Bump friendsofphp/php-cs-fixer from 3.56.2 to 3.68.4 in /tools #1079
Annotations
12 warnings
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessDays.php#L98
Escaped Mutant for Mutator "Concat":
@@ @@
return $regularBusinessDay;
}
}
- throw new BusinessDayException($day->format('Y-m-d') . ' is not a business day.');
+ throw new BusinessDayException(' is not a business day.' . $day->format('Y-m-d'));
}
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessDays.php#L98
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
return $regularBusinessDay;
}
}
- throw new BusinessDayException($day->format('Y-m-d') . ' is not a business day.');
+ throw new BusinessDayException(' is not a business day.');
}
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessDays.php#L98
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
return $regularBusinessDay;
}
}
- throw new BusinessDayException($day->format('Y-m-d') . ' is not a business day.');
+ throw new BusinessDayException($day->format('Y-m-d'));
}
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/BusinessHours.php#L69
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
throw new InvalidArgumentException('Maximum days must be greater or equal 1');
}
$nextDay = $day->next();
- $daysChecked = 0;
+ $daysChecked = -1;
while ($this->nonBusinessDays->is($nextDay) || !$this->regularBusinessDays->isOpenOn($nextDay) && !$this->customBusinessDays->isOpenOn($nextDay)) {
$nextDay = $nextDay->next();
$daysChecked += 1;
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/WorkingHours/ShiftsWorkingHours.php#L31
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
throw new InvalidArgumentException('Shifts can\'t be empty');
}
\uasort($workingHours, function (LinearWorkingHours $workingHoursA, LinearWorkingHours $workingHoursB): int {
- return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -1 : 1;
+ return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -2 : 1;
});
$this->workingHours = \array_values($workingHours);
}
|
Mutation Tests:
src/business-hours/src/Aeon/Calendar/BusinessHours/WorkingHours/ShiftsWorkingHours.php#L32
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
throw new InvalidArgumentException('Shifts can\'t be empty');
}
\uasort($workingHours, function (LinearWorkingHours $workingHoursA, LinearWorkingHours $workingHoursB): int {
- return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -1 : 1;
+ return $workingHoursA->openFrom()->isBeforeOrEqualTo($workingHoursB->openFrom()) ? -1 : 2;
});
$this->workingHours = \array_values($workingHours);
}
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeType.php#L37
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
if ($value instanceof DateTime || $value instanceof \DateTimeInterface) {
return $value->format($platform->getDateTimeFormatString());
}
- throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['null', 'DateTime', '\DateTimeInterface']);
+ throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['DateTime', '\DateTimeInterface']);
}
/**
* {@inheritdoc}
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeType.php#L45
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
*/
public function convertToPHPValue($value, AbstractPlatform $platform): ?DateTime
{
- if ($value === null || $value instanceof DateTime) {
+ if ($value === null || false) {
return $value;
}
if (!\is_string($value)) {
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeTzType.php#L37
Escaped Mutant for Mutator "ArrayItemRemoval":
@@ @@
if ($value instanceof DateTime || $value instanceof \DateTimeInterface) {
return $value->format($platform->getDateTimeTzFormatString());
}
- throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['null', 'DateTime', '\DateTimeInterface']);
+ throw ConversionException::conversionFailedInvalidType($value, $this->getName(), ['DateTime', '\DateTimeInterface']);
}
/**
* {@inheritdoc}
|
Mutation Tests:
src/calendar-doctrine/src/Aeon/Doctrine/Calendar/Gregorian/DateTimeTzType.php#L45
Escaped Mutant for Mutator "InstanceOf_":
@@ @@
*/
public function convertToPHPValue($value, AbstractPlatform $platform): ?DateTime
{
- if ($value === null || $value instanceof DateTime) {
+ if ($value === null || false) {
return $value;
}
if (!\is_string($value)) {
|
Get Composer Cache Directory
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading