Update errors.php #1513
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: nick-fields/retry@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run mutation test suite:
src/Internal/Decorator/StorageServiceLockDecorator.php#L40
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
}
public function sync(string $uuid, float|int|string $value) : bool
{
- return $this->multiSync([$uuid => $value]);
+ return $this->multiSync([]);
}
/**
* @throws RecordNotFoundException
|
Run mutation test suite:
src/Internal/Exceptions/TransactionRollbackException.php#L14
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
public function __construct(private readonly mixed $result)
{
- parent::__construct();
+
}
public function getResult() : mixed
{
|
Run mutation test suite:
src/Internal/Repository/WalletRepository.php#L108
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
*/
public function getBySlug(string $holderType, int|string $holderId, string $slug) : Wallet
{
- return $this->getBy(['holder_type' => $holderType, 'holder_id' => $holderId, 'slug' => $slug]);
+ return $this->getBy(['holder_id' => $holderId, 'slug' => $slug]);
}
/**
* @param array<int|string> $holderIds
|
Run mutation test suite:
src/Internal/Service/DispatcherService.php#L42
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function forgot() : void
{
foreach (array_keys($this->events) as $event) {
- $this->dispatcher->forget($event);
+
}
$this->events = [];
}
|
Run mutation test suite:
src/Internal/Service/LockService.php#L81
Escaped Mutant for Mutator "Continue_":
--- Original
+++ New
@@ @@
$lockProvider = $this->getLockProvider();
foreach ($keys as $key) {
if (!$this->isBlocked($key)) {
- continue;
+ break;
}
$lockProvider->lock(self::LOCK_KEY . $key, $this->seconds)->forceRelease();
$this->lockedKeys->delete(self::INNER_KEYS . $key);
|
Run mutation test suite:
src/Internal/Service/MathService.php#L51
Escaped Mutant for Mutator "CastInt":
--- Original
+++ New
@@ @@
}
public function pow(float|int|string $first, float|int|string $second, ?int $scale = null) : string
{
- return (string) BigDecimal::of($first)->power((int) $second)->toScale($scale ?? $this->scale, RoundingMode::DOWN);
+ return (string) BigDecimal::of($first)->power($second)->toScale($scale ?? $this->scale, RoundingMode::DOWN);
}
public function powTen(float|int|string $number) : string
{
|
Run mutation test suite:
src/Internal/Service/MathService.php#L52
Escaped Mutant for Mutator "Coalesce":
--- Original
+++ New
@@ @@
}
public function pow(float|int|string $first, float|int|string $second, ?int $scale = null) : string
{
- return (string) BigDecimal::of($first)->power((int) $second)->toScale($scale ?? $this->scale, RoundingMode::DOWN);
+ return (string) BigDecimal::of($first)->power((int) $second)->toScale($this->scale ?? $scale, RoundingMode::DOWN);
}
public function powTen(float|int|string $number) : string
{
|
Run mutation test suite:
src/Models/Transaction.php#L77
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* @return MorphTo<Model, self>
*/
- public function payable() : MorphTo
+ protected function payable() : MorphTo
{
return $this->morphTo();
}
|
Run mutation test suite:
src/Models/Wallet.php#L136
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
return (string) $this->getRawOriginal('balance', 0);
}
- public function getAvailableBalanceAttribute() : float|int|string
+ protected function getAvailableBalanceAttribute() : float|int|string
{
return $this->walletTransactions()->where('confirmed', true)->sum('amount');
}
|
Run mutation test suite:
src/Models/Wallet.php#L157
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
{
return (string) ($this->meta['credit'] ?? '0');
}
- public function getCurrencyAttribute() : string
+ protected function getCurrencyAttribute() : string
{
return $this->meta['currency'] ?? Str::upper($this->slug);
}
|
Loading