Bump symfony/process from 7.1.5 to 7.1.7 (#646) #942
Annotations
12 warnings
Run tests:
src/Domain/Entity/Calendar.php#L47
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
*/
private function ensureEventsObject($events = []) : Events
{
- if ($events instanceof Events) {
+ if (false) {
return $events;
}
if (is_array($events)) {
|
Run tests:
src/Domain/Entity/Calendar.php#L55
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (is_array($events)) {
return new EventsArray($events);
}
- if ($events instanceof Iterator) {
+ if (true) {
return new EventsGenerator($events);
}
throw new InvalidArgumentException('$events must be an array, an object implementing Iterator or an instance of Events.');
|
Run tests:
src/Domain/Entity/TimeZone.php#L40
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
}
public static function createFromPhpDateTimeZone(PhpDateTimeZone $phpDateTimeZone, DateTimeInterface $beginDateTime = null, DateTimeInterface $endDateTime = null) : self
{
- if ($beginDateTime === null || $endDateTime === null) {
+ if ($beginDateTime !== null || $endDateTime === null) {
trigger_deprecation('eluceo/ical', '2.1.0', 'Relying on the default values for begin and end date when calling TimeZone::createFromPhpDateTimeZone() is deprecated. Please provide a begin and an end date.');
}
$transitions = $phpDateTimeZone->getTransitions($beginDateTime ? $beginDateTime->getTimestamp() : (new DateTimeImmutable('0000-01-01 12:00:00'))->getTimestamp(), $endDateTime ? $endDateTime->getTimestamp() : PHP_INT_MAX);
|
Run tests:
src/Domain/Entity/TimeZone.php#L40
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
}
public static function createFromPhpDateTimeZone(PhpDateTimeZone $phpDateTimeZone, DateTimeInterface $beginDateTime = null, DateTimeInterface $endDateTime = null) : self
{
- if ($beginDateTime === null || $endDateTime === null) {
+ if ($beginDateTime === null || $endDateTime !== null) {
trigger_deprecation('eluceo/ical', '2.1.0', 'Relying on the default values for begin and end date when calling TimeZone::createFromPhpDateTimeZone() is deprecated. Please provide a begin and an end date.');
}
$transitions = $phpDateTimeZone->getTransitions($beginDateTime ? $beginDateTime->getTimestamp() : (new DateTimeImmutable('0000-01-01 12:00:00'))->getTimestamp(), $endDateTime ? $endDateTime->getTimestamp() : PHP_INT_MAX);
|
Run tests:
src/Domain/Entity/TimeZone.php#L40
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
}
public static function createFromPhpDateTimeZone(PhpDateTimeZone $phpDateTimeZone, DateTimeInterface $beginDateTime = null, DateTimeInterface $endDateTime = null) : self
{
- if ($beginDateTime === null || $endDateTime === null) {
+ if ($beginDateTime === null && $endDateTime === null) {
trigger_deprecation('eluceo/ical', '2.1.0', 'Relying on the default values for begin and end date when calling TimeZone::createFromPhpDateTimeZone() is deprecated. Please provide a begin and an end date.');
}
$transitions = $phpDateTimeZone->getTransitions($beginDateTime ? $beginDateTime->getTimestamp() : (new DateTimeImmutable('0000-01-01 12:00:00'))->getTimestamp(), $endDateTime ? $endDateTime->getTimestamp() : PHP_INT_MAX);
|
Run tests:
src/Domain/Entity/TimeZone.php#L40
Escaped Mutant for Mutator "LogicalOrAllSubExprNegation":
--- Original
+++ New
@@ @@
}
public static function createFromPhpDateTimeZone(PhpDateTimeZone $phpDateTimeZone, DateTimeInterface $beginDateTime = null, DateTimeInterface $endDateTime = null) : self
{
- if ($beginDateTime === null || $endDateTime === null) {
+ if (!($beginDateTime === null) || !($endDateTime === null)) {
trigger_deprecation('eluceo/ical', '2.1.0', 'Relying on the default values for begin and end date when calling TimeZone::createFromPhpDateTimeZone() is deprecated. Please provide a begin and an end date.');
}
$transitions = $phpDateTimeZone->getTransitions($beginDateTime ? $beginDateTime->getTimestamp() : (new DateTimeImmutable('0000-01-01 12:00:00'))->getTimestamp(), $endDateTime ? $endDateTime->getTimestamp() : PHP_INT_MAX);
|
Run tests:
src/Domain/Entity/TimeZone.php#L40
Escaped Mutant for Mutator "LogicalOrNegation":
--- Original
+++ New
@@ @@
}
public static function createFromPhpDateTimeZone(PhpDateTimeZone $phpDateTimeZone, DateTimeInterface $beginDateTime = null, DateTimeInterface $endDateTime = null) : self
{
- if ($beginDateTime === null || $endDateTime === null) {
+ if (!($beginDateTime === null || $endDateTime === null)) {
trigger_deprecation('eluceo/ical', '2.1.0', 'Relying on the default values for begin and end date when calling TimeZone::createFromPhpDateTimeZone() is deprecated. Please provide a begin and an end date.');
}
$transitions = $phpDateTimeZone->getTransitions($beginDateTime ? $beginDateTime->getTimestamp() : (new DateTimeImmutable('0000-01-01 12:00:00'))->getTimestamp(), $endDateTime ? $endDateTime->getTimestamp() : PHP_INT_MAX);
|
Run tests:
src/Domain/Entity/TimeZone.php#L59
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$fromDateTime = DateTimeImmutable::createFromFormat(DateTimeImmutable::ISO8601, $transitionArray['time']);
assert($fromDateTime instanceof DateTimeImmutable, $transitionArray['time']);
$localFromDateTime = $fromDateTime->setTimezone($phpDateTimeZone);
- $timeZone->addTransition(new TimeZoneTransition($transitionArray['isdst'] ? TimeZoneTransitionType::DAYLIGHT() : TimeZoneTransitionType::STANDARD(), $localFromDateTime, $phpDateTimeZone->getOffset($fromDateTime->sub(new DateInterval('PT1S'))), $transitionArray['offset'], $transitionArray['abbr']));
+ $timeZone->addTransition(new TimeZoneTransition($transitionArray['isdst'] ? TimeZoneTransitionType::STANDARD() : TimeZoneTransitionType::DAYLIGHT(), $localFromDateTime, $phpDateTimeZone->getOffset($fromDateTime->sub(new DateInterval('PT1S'))), $transitionArray['offset'], $transitionArray['abbr']));
}
return $timeZone;
}
|
Run tests:
src/Domain/Enum/CalendarUserType.php#L44
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
}
public static function UNKNOWN() : self
{
- return self::$unknown ??= new self();
+ return self::$unknown = new self();
}
}
|
Run tests:
src/Domain/Enum/TimeZoneTransitionType.php#L26
Escaped Mutant for Mutator "AssignCoalesce":
--- Original
+++ New
@@ @@
}
public static function STANDARD() : self
{
- return self::$standard ??= new TimeZoneTransitionType();
+ return self::$standard = new TimeZoneTransitionType();
}
}
|
Send code coverage
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4.6.0/dist/codecov' failed with exit code 1
|
Determine 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