[general] Upgraded date time factory dueto testing issues (#311) #29
Annotations
12 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
src/Documents/Widgets/Widget.php#L124
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
return $this->name;
}
- public function getDisplay() : Uuid\UuidInterface
+ protected function getDisplay() : Uuid\UuidInterface
{
return $this->display;
}
|
src/Documents/Widgets/Widget.php#L132
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* @return array<Uuid\UuidInterface>
*/
- public function getDataSources() : array
+ protected function getDataSources() : array
{
return $this->dataSources;
}
|
src/Documents/Widgets/Widget.php#L140
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* @return array<Uuid\UuidInterface>
*/
- public function getTabs() : array
+ protected function getTabs() : array
{
return $this->tabs;
}
|
src/Documents/Widgets/Widget.php#L162
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
}
public function toArray() : array
{
- return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)];
+ return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => $this->getDataSources(), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)];
}
public function getSource() : MetadataTypes\Sources\Source
{
|
src/Documents/Widgets/Widget.php#L166
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
}
public function toArray() : array
{
- return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)];
+ return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => $this->getTabs(), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)];
}
public function getSource() : MetadataTypes\Sources\Source
{
|
src/Documents/Widgets/Widget.php#L170
Escaped Mutant for Mutator "UnwrapArrayMap":
--- Original
+++ New
@@ @@
}
public function toArray() : array
{
- return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getGroups()), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)];
+ return ['id' => $this->getId()->toString(), 'type' => static::getType(), 'source' => $this->getSource()->value, 'identifier' => $this->getIdentifier(), 'name' => $this->getName(), 'display' => $this->getDisplay()->toString(), 'data_sources' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getDataSources()), 'tabs' => array_map(static fn(Uuid\UuidInterface $id): string => $id->toString(), $this->getTabs()), 'groups' => $this->getGroups(), 'owner' => $this->getOwner()?->toString(), 'created_at' => $this->getCreatedAt()?->format(DateTimeInterface::ATOM), 'updated_at' => $this->getUpdatedAt()?->format(DateTimeInterface::ATOM)];
}
public function getSource() : MetadataTypes\Sources\Source
{
|
src/Entities/Widgets/Displays/Button.php#L43
Escaped Mutant for Mutator "NullSafePropertyCall":
--- Original
+++ New
@@ @@
*/
public function toArray() : array
{
- return array_merge(parent::toArray(), ['icon' => $this->getIcon()?->value]);
+ return array_merge(parent::toArray(), ['icon' => $this->getIcon()->value]);
}
}
|
src/Entities/Widgets/Displays/Parameters/TIcon.php#L43
Escaped Mutant for Mutator "NotIdentical":
--- Original
+++ New
@@ @@
public function getIcon() : Types\WidgetIcon|null
{
$value = $this->getParam('icon');
- return is_string($value) && $value !== '' ? Types\WidgetIcon::tryFrom($value) : null;
+ return is_string($value) && $value === '' ? Types\WidgetIcon::tryFrom($value) : null;
}
public function setIcon(Types\WidgetIcon|null $icon) : void
{
|
src/Entities/Widgets/Displays/Parameters/TIcon.php#L43
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
public function getIcon() : Types\WidgetIcon|null
{
$value = $this->getParam('icon');
- return is_string($value) && $value !== '' ? Types\WidgetIcon::tryFrom($value) : null;
+ return !is_string($value) && !($value !== '') ? Types\WidgetIcon::tryFrom($value) : null;
}
public function setIcon(Types\WidgetIcon|null $icon) : void
{
|
src/Models/Configuration/Dashboards/Repository.php#L91
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
return false;
}
$document = $this->documentFactory->create(Documents\Dashboards\Dashboard::class, $result[0]);
- $dependencies = [NetteCaching\Cache::Tags => [$document->getId()->toString()]];
+ $dependencies = [];
return $document;
}, [NetteCaching\Cache::Tags => [Types\ConfigurationType::DASHBOARDS->value]]);
} catch (Throwable $ex) {
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "Logs - Mutations".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
This job succeeded
Loading