Bump follow-redirects from 1.15.4 to 1.15.6 in /website #864
Annotations
12 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3.3.2, codecov/codecov-action@v3.1.4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
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();
}
}
|
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