Skip to content

[10.x] Add support laravel ^11.0 #1493

[10.x] Add support laravel ^11.0

[10.x] Add support laravel ^11.0 #1493

Triggered via pull request March 12, 2024 17:01
@rez1dent3rez1dent3
synchronize #910
test-10x
Status Success
Total duration 22m 26s
Artifacts

phpunits.yaml

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

Annotations

32 errors and 44 warnings
units (8.1, ^11.0, mariadb, array, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, array, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, database, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, memcached, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, redis, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, memcached, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, array, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, database, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, redis, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, memcached, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mariadb, redis, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, redis, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, database, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, database, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, array, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, database, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, memcached, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, database, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, array, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, mysql, array, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, memcached, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, memcached, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, redis, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, memcached, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, database, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, memcached, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, array, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, redis, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, array, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, pgsql, redis, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, database, memcached)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.1, ^11.0, testing, redis, redis)
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v11.0.0, ..., 11.x-dev] require php ^8.2 -> your php version (8.1.2) does not satisfy that requirement. - Root composer.json requires laravel/framework ^11.0 -> satisfiable by laravel/framework[v11.0.0, v11.0.1, 11.x-dev].
units (8.3, ^10.0, testing, array, redis)
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/.
units (8.3, ^10.0, testing, array, redis): 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
units (8.3, ^10.0, 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, ^10.0, testing, array, redis): 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.3, ^10.0, testing, array, redis): 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.3, ^10.0, 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, ^10.0, 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, ^10.0, testing, array, redis): 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); }
units (8.3, ^10.0, testing, array, redis): src/Objects/Cart.php#L83
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.3, ^10.0, testing, array, redis): 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.3, ^10.0, testing, array, redis): src/Services/BookkeeperService.php#L58
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 {
units (8.3, ^10.0, testing, array, memcached)
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/.
units (8.3, ^10.0, testing, array, memcached): 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
units (8.3, ^10.0, testing, array, memcached): 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, ^10.0, testing, array, memcached): 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.3, ^10.0, testing, array, memcached): 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.3, ^10.0, testing, array, memcached): 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, ^10.0, testing, array, memcached): 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, ^10.0, testing, array, memcached): 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); }
units (8.3, ^10.0, testing, array, memcached): src/Objects/Cart.php#L83
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.3, ^10.0, testing, array, memcached): 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.3, ^10.0, testing, array, memcached): src/Services/BookkeeperService.php#L58
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 {
units (8.3, ^11.0, testing, array, memcached)
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/.
units (8.3, ^11.0, testing, array, memcached): 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
units (8.3, ^11.0, testing, array, memcached): 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, ^11.0, testing, array, memcached): 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, ^11.0, testing, array, memcached): 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 = []; }
units (8.3, ^11.0, testing, array, memcached): 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, ^11.0, testing, array, memcached): 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(); }
units (8.3, ^11.0, testing, array, memcached): 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'); }
units (8.3, ^11.0, testing, array, memcached): 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); }
units (8.3, ^11.0, testing, array, memcached): src/Objects/Cart.php#L83
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.3, ^11.0, testing, array, memcached): src/Objects/Cart.php#L115
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ $product = $item->getProduct(); $pricePerItem = $item->getPricePerItem(); if ($pricePerItem === null) { - $prices[$productId] ??= $product->getAmountProduct($customer); + $prices[$productId] = $product->getAmountProduct($customer); $pricePerItem = $prices[$productId]; } $price = $this->math->mul(count($item), $pricePerItem);
units (8.3, ^11.0, testing, array, redis)
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/.
units (8.3, ^11.0, testing, array, redis): 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
units (8.3, ^11.0, 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, ^11.0, 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, ^11.0, testing, array, redis): 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 = []; }
units (8.3, ^11.0, 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, ^11.0, testing, array, redis): 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(); }
units (8.3, ^11.0, testing, array, redis): 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'); }
units (8.3, ^11.0, testing, array, redis): 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); }
units (8.3, ^11.0, testing, array, redis): src/Objects/Cart.php#L83
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.3, ^11.0, testing, array, redis): src/Objects/Cart.php#L115
Escaped Mutant for Mutator "AssignCoalesce": --- Original +++ New @@ @@ $product = $item->getProduct(); $pricePerItem = $item->getPricePerItem(); if ($pricePerItem === null) { - $prices[$productId] ??= $product->getAmountProduct($customer); + $prices[$productId] = $product->getAmountProduct($customer); $pricePerItem = $prices[$productId]; } $price = $this->math->mul(count($item), $pricePerItem);