Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 13, 2023
1 parent a4bf62c commit 13712e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions src/ComplexResultBucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ public function reasons(): ?array
{
return array_reduce(
array_map(
function (Contract\RejectionResultBucketInterface $rejection): ?array {
return $rejection->reasons();
},
fn(Contract\RejectionResultBucketInterface $rejection): ?array => $rejection->reasons(),
$this->rejections
),
function (array $carry, ?array $item): array {
Expand All @@ -68,9 +66,7 @@ public function exceptions(): ?array
{
return array_reduce(
array_map(
function (Contract\RejectionResultBucketInterface $rejection): ?array {
return $rejection->exceptions();
},
fn(Contract\RejectionResultBucketInterface $rejection): ?array => $rejection->exceptions(),
$this->rejections
),
function (array $carry, ?array $item): array {
Expand Down
4 changes: 2 additions & 2 deletions src/RejectionResultBucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ final class RejectionResultBucket implements Contract\RejectionResultBucketInter

/** @param Type ...$values */
public function __construct(
private string $reason,
private \Throwable $exception,
private readonly string $reason,
private readonly \Throwable $exception,
...$values,
) {
$this->values = array_values($values);
Expand Down

0 comments on commit 13712e5

Please sign in to comment.