Skip to content

build(deps): bump axios from 1.6.7 to 1.6.8 #1514

build(deps): bump axios from 1.6.7 to 1.6.8

build(deps): bump axios from 1.6.7 to 1.6.8 #1514

Triggered via pull request March 15, 2024 21:01
Status Success
Total duration 9m 26s
Artifacts

phpunits.yaml

on: pull_request
Matrix: units
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
units (8.3, testing, array, redis): 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 {
units (8.3, testing, array, redis): src/Internal/Observers/TransferObserver.php#L33
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function deleting(Transfer $model) : bool { - return $this->atomicService->blocks([$model->from, $model->to], function () use($model) { + return $this->atomicService->blocks([$model->to], function () use($model) { return $model->from->resetConfirm($model->withdraw) && $model->to->resetConfirm($model->deposit); }); } }
units (8.3, testing, array, redis): 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
units (8.3, testing, array, redis): 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);
units (8.3, testing, array, redis): src/Internal/Service/MathService.php#L47
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 {
units (8.3, testing, array, redis): src/Internal/Service/MathService.php#L48
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 {
units (8.3, testing, array, redis): src/Models/Wallet.php#L144
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'); }
units (8.3, testing, array, redis): src/Models/Wallet.php#L164
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); }
units (8.3, testing, array, redis): src/Objects/Cart.php#L77
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ */ public function withExtra(array $extra) : self { - $self = clone $this; + $self = $this; $self->extra = $extra; return $self; }
units (8.3, testing, array, redis): src/Objects/Cart.php#L107
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ */ public function withItems(iterable $products) : self { - $self = clone $this; + $self = $this; foreach ($products as $product) { $self = $self->withItem($product); }