Skip to content

Release version 2.12.1 #742

Release version 2.12.1

Release version 2.12.1 #742

Triggered via pull request June 22, 2023 16:10
Status Success
Total duration 1m 42s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

34 warnings
test (8.0): 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)) {
test (8.0): 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.');
test (8.0): 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);
test (8.0): 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);
test (8.0): 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);
test (8.0): 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; }
test (8.0): 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(); } }
test (8.0): 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(); } }
test (8.0): src/Domain/ValueObject/Date.php#L22
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { public function add(DateInterval $interval) : self { - if ($interval->h > 0 || $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { + if ($interval->h > 0 && $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { throw new InvalidArgumentException('Cannot add time interval to a date.'); } $new = parent::add($interval);
test (8.0): src/Domain/ValueObject/Date.php#L22
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { public function add(DateInterval $interval) : self { - if ($interval->h > 0 || $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { + if (($interval->h > 0 || $interval->i > 0) && $interval->s > 0 || $interval->f > 0) { throw new InvalidArgumentException('Cannot add time interval to a date.'); } $new = parent::add($interval);
test (8.0)
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/
test (8.2)
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/
test (8.2): 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)) {
test (8.2): 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.');
test (8.2): 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);
test (8.2): 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);
test (8.2): 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);
test (8.2): 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; }
test (8.2): 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(); } }
test (8.2): 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(); } }
test (8.2): src/Domain/ValueObject/Date.php#L22
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { public function add(DateInterval $interval) : self { - if ($interval->h > 0 || $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { + if ($interval->h > 0 && $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { throw new InvalidArgumentException('Cannot add time interval to a date.'); } $new = parent::add($interval);
test (8.2): src/Domain/ValueObject/Date.php#L22
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { public function add(DateInterval $interval) : self { - if ($interval->h > 0 || $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { + if (($interval->h > 0 || $interval->i > 0) && $interval->s > 0 || $interval->f > 0) { throw new InvalidArgumentException('Cannot add time interval to a date.'); } $new = parent::add($interval);
test (7.4)
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/
test (8.1)
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/
test (8.1): 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)) {
test (8.1): 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.');
test (8.1): 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);
test (8.1): 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);
test (8.1): 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);
test (8.1): 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; }
test (8.1): 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(); } }
test (8.1): 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(); } }
test (8.1): src/Domain/ValueObject/Date.php#L22
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { public function add(DateInterval $interval) : self { - if ($interval->h > 0 || $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { + if ($interval->h > 0 && $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { throw new InvalidArgumentException('Cannot add time interval to a date.'); } $new = parent::add($interval);
test (8.1): src/Domain/ValueObject/Date.php#L22
Escaped Mutant for Mutator "LogicalOr": --- Original +++ New @@ @@ { public function add(DateInterval $interval) : self { - if ($interval->h > 0 || $interval->i > 0 || $interval->s > 0 || $interval->f > 0) { + if (($interval->h > 0 || $interval->i > 0) && $interval->s > 0 || $interval->f > 0) { throw new InvalidArgumentException('Cannot add time interval to a date.'); } $new = parent::add($interval);