Up year #5
Annotations
1 error and 7 warnings
|
src/DataTransferObject/AbstractDataTransferObject.php#L40
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
}
protected static function convertDateTime(null|\DateTimeImmutable|string $dateTime) : ?\DateTimeImmutable
{
- if (null === $dateTime || $dateTime instanceof \DateTimeImmutable) {
+ if (null === $dateTime || false) {
return $dateTime;
}
$dateTime = \DateTimeImmutable::createFromFormat(\DATE_ATOM, $dateTime);
|
src/DataTransferObject/AbstractDataTransferObject.php#L45
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
return $dateTime;
}
$dateTime = \DateTimeImmutable::createFromFormat(\DATE_ATOM, $dateTime);
- Assert::notFalse($dateTime);
+
return $dateTime;
}
/**
|
src/DataTransferObject/AbstractDataTransferObject.php#L64
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
if (null === $value) {
return null;
}
- if ($value instanceof \BackedEnum) {
+ if (false) {
Assert::isInstanceOf($value, $enumClass);
return $value;
}
|
src/DataTransferObject/SalesOrder/SalesOrder.php#L78
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* Otherwise, PeakWMS will not be able to find and capture the order in the payment integration.
*/
public ?string $transactionNumber = null,
- public bool $giftWrap = false,
+ public bool $giftWrap = true,
public ?string $customerReference = null,
int|PaymentStatus $paymentStatus = null,
int|PickAgainReason $pickAgainReason = null,
|
src/DataTransferObject/SalesOrder/SalesOrder.php#L86
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
public ?Address $shippingAddress = null,
public ?Address $senderAddress = null,
public ?string $sendWithOrder = null,
- public bool $generateAndPrintDeliveryNote = false,
+ public bool $generateAndPrintDeliveryNote = true,
array $orderLines = []
)
{
|
src/DataTransferObject/SalesOrder/SalesOrder.php#L90
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
)
{
$this->orderId = (string) $orderId;
- $this->orderNumber = (string) $orderNumber;
+ $this->orderNumber = $orderNumber;
$this->orderDateTime = self::convertDateTime($orderDateTime);
$this->requestedDeliveryDate = self::convertDateTime($requestedDeliveryDate);
$this->state = self::convertEnum($state, State::class);
|
src/DataTransferObject/SalesOrder/SalesOrder.php#L98
Escaped Mutant for Mutator "Foreach_":
--- Original
+++ New
@@ @@
$this->onHoldReason = self::convertEnum($onHoldReason, OnHoldReason::class);
$this->paymentStatus = self::convertEnum($paymentStatus, PaymentStatus::class);
$this->pickAgainReason = self::convertEnum($pickAgainReason, PickAgainReason::class);
- foreach ($orderLines as $orderLine) {
+ foreach (array() as $orderLine) {
$this->addOrderLine($orderLine);
}
}
|
This job failed
Loading