build(deps): bump mini-css-extract-plugin from 2.7.7 to 2.8.0 #1389
Annotations
20 warnings
units (8.2, 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.2, 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.2, 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.2, 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.2, 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.2, 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.2, 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.2, 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.2, 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);
}
|
units (8.2, 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.2, 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.2, 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.2, testing, array, memcached):
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.2, 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.2, 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.2, 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.2, 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.2, testing, array, memcached):
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.2, testing, array, memcached):
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);
}
|
units (8.2, 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
|