Skip to content

Merge pull request #796 from bavix/php83 #1237

Merge pull request #796 from bavix/php83

Merge pull request #796 from bavix/php83 #1237

Triggered via push October 27, 2023 07:27
Status Success
Total duration 33m 16s
Artifacts

phpunits.yaml

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

Annotations

21 warnings
units (8.1, testing, memcached, memcached)
Docker pull failed with exit code 1, back off 5.694 seconds before retry.
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/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/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.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/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 {
units (8.2, testing, array, memcached): 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 {
units (8.2, 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.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/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/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.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/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 {
units (8.2, testing, array, redis): 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 {
units (8.2, 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(); }