Skip to content

Commit 788d4d5

Browse files
committed
php 8.5
1 parent 5c17c48 commit 788d4d5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Aggregation/Range.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@
1111
class Range implements LeafAggregationInterface
1212
{
1313

14-
private \Spameri\ElasticQuery\Aggregation\RangeValueCollection $ranges;
15-
16-
1714
public function __construct(
1815
private string $field,
1916
private bool $keyed = false,
20-
\Spameri\ElasticQuery\Aggregation\RangeValueCollection $rangeValueCollection = null,
17+
private \Spameri\ElasticQuery\Aggregation\RangeValueCollection $ranges = new \Spameri\ElasticQuery\Aggregation\RangeValueCollection(),
2118
)
2219
{
23-
$this->ranges = $rangeValueCollection ?: new \Spameri\ElasticQuery\Aggregation\RangeValueCollection();
2420
}
2521

2622

src/Exception/ResponseCouldNotBeMapped.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ResponseCouldNotBeMapped extends \InvalidArgumentException
1111
public function __construct(
1212
string $message,
1313
int $code = 0,
14-
\Throwable $previous = null,
14+
\Throwable|null $previous = null,
1515
)
1616
{
1717
parent::__construct((string) \json_encode($message), $code, $previous);

0 commit comments

Comments
 (0)