Skip to content

Bump size-limit from 8.2.4 to 8.2.6 #1092

Bump size-limit from 8.2.4 to 8.2.6

Bump size-limit from 8.2.4 to 8.2.6 #1092

Triggered via pull request June 26, 2023 21:57
Status Success
Total duration 17m 12s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

phpunits.yaml

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

Annotations

10 warnings
units (8.0, testing, array): src/Commands/TransferFixCommand.php#L20
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ protected $description = 'Brings transfers to the correct form/to.'; public function handle(Wallet $wallet, Transfer $transfer, CastServiceInterface $castService) : void { - $query = $transfer::with(['from', 'to'])->orWhere('from_type', '<>', $wallet->getMorphClass())->orWhere('to_type', '<>', $wallet->getMorphClass()); + $query = $transfer::with(['to'])->orWhere('from_type', '<>', $wallet->getMorphClass())->orWhere('to_type', '<>', $wallet->getMorphClass()); $query->each(fn(Transfer $object) => $this->fix($castService, $wallet, $object)); } private function fix(CastServiceInterface $castService, Wallet $wallet, Transfer $transfer) : void
units (8.0, testing, array): src/Internal/Exceptions/TransactionRollbackException.php#L14
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ { public function __construct(private mixed $result) { - parent::__construct(); + } public function getResult() : mixed {
units (8.0, testing, array): src/Internal/Repository/WalletRepository.php#L88
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function getById(int $id) : Wallet { - return $this->getBy(['id' => $id]); + return $this->getBy([]); } /** * @throws ModelNotFoundException
units (8.0, testing, array): src/Internal/Repository/WalletRepository.php#L98
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ */ public function getByUuid(string $uuid) : Wallet { - return $this->getBy(['uuid' => $uuid]); + return $this->getBy([]); } /** * @throws ModelNotFoundException
units (8.0, testing, array): 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.0, testing, array): src/Internal/Service/LockService.php#L88
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.0, testing, array): src/Models/Wallet.php#L152
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.0, testing, array): src/Objects/Cart.php#L78
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); }
units (8.0, testing, array): src/Services/AssistantService.php#L38
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ $wallet = $this->castService->getWallet($object); $wallets[$wallet->getKey()] = $wallet; } - return $wallets; + return count($wallets) > 1 ? array_slice($wallets, 0, 1, true) : $wallets; } /** * @param non-empty-array<array-key, TransactionDtoInterface|TransferDtoInterface> $objects
units (8.0, testing, array): src/Services/BookkeeperService.php#L54
Escaped Mutant for Mutator "ArrayItem": --- Original +++ New @@ @@ */ public function increase(Wallet $wallet, float|int|string $value) : string { - return current($this->multiIncrease([$wallet->uuid => $wallet], [$wallet->uuid => $value])); + return current($this->multiIncrease([$wallet->uuid > $wallet], [$wallet->uuid => $value])); } public function multiAmount(array $wallets) : array {