Skip to content

Bump braces from 3.0.2 to 3.0.3 in /website #887

Bump braces from 3.0.2 to 3.0.3 in /website

Bump braces from 3.0.2 to 3.0.3 in /website #887

Triggered via pull request June 16, 2024 14:20
Status Success
Total duration 1m 9s
Artifacts

ci.yml

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

Annotations

30 warnings
test (8.1)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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 (7.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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.0)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected], codecov/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test (8.3): 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.3): 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.3): 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.3): 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.3): 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.3): 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);
test (8.3): 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);
test (8.3): 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.3): 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.3): 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.3)
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)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
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#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);
test (8.2): 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);
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(); } }