Skip to content

Commit

Permalink
Make the \Setono\PeakWMS\DataTransferObject\AbstractDataTransferObjec…
Browse files Browse the repository at this point in the history
…t::convertDateTime public
  • Loading branch information
loevgaard committed Jun 13, 2024
1 parent c0d6b6e commit 1ab811f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataTransferObject/AbstractDataTransferObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function jsonSerialize(): array
/**
* @throws \InvalidArgumentException if the value is not a valid date time string
*/
protected static function convertDateTime(null|\DateTimeInterface|string $value): ?\DateTimeImmutable
public static function convertDateTime(null|\DateTimeInterface|string $value): ?\DateTimeImmutable

Check warning on line 39 in src/DataTransferObject/AbstractDataTransferObject.php

View workflow job for this annotation

GitHub Actions / Mutation tests (8.3, highest)

Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ /** * @throws \InvalidArgumentException if the value is not a valid date time string */ - public static function convertDateTime(null|\DateTimeInterface|string $value) : ?\DateTimeImmutable + protected static function convertDateTime(null|\DateTimeInterface|string $value) : ?\DateTimeImmutable { if (null === $value || $value instanceof \DateTimeImmutable) { return $value;
{
if (null === $value || $value instanceof \DateTimeImmutable) {

Check warning on line 41 in src/DataTransferObject/AbstractDataTransferObject.php

View workflow job for this annotation

GitHub Actions / Mutation tests (8.3, highest)

Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ */ public static function convertDateTime(null|\DateTimeInterface|string $value) : ?\DateTimeImmutable { - if (null === $value || $value instanceof \DateTimeImmutable) { + if (null === $value || false) { return $value; } if ($value instanceof \DateTimeInterface) {
return $value;
Expand Down

0 comments on commit 1ab811f

Please sign in to comment.