Skip to content

Commit 27ade0a

Browse files
author
Maelmin Henge
committed
fix deprications
1 parent 457ca37 commit 27ade0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Collection/BaseCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getSortedByCustomFunc(callable $sortFunc, ?int $limit = null, ?i
5151
* @return static
5252
* @throws RuntimeException
5353
*/
54-
public function getSorted(array $orderings, int $limit = null, int $offset = null)
54+
public function getSorted(array $orderings, ?int $limit = null, ?int $offset = null)
5555
{
5656
$criteria = Criteria::create();
5757
if ($orderings) {
@@ -132,7 +132,7 @@ public function getWhere(string $attribute, string $condition, mixed $value)
132132
* @param string|null $collectionKeyProperty Property to retrieve key for collection item
133133
* @return self
134134
*/
135-
public function merge(BaseCollection $collection, string $collectionKeyProperty = null): self
135+
public function merge(BaseCollection $collection, ?string $collectionKeyProperty = null): self
136136
{
137137
foreach ($collection as $model) {
138138
if ($collectionKeyProperty !== null && $model->{$collectionKeyProperty} !== null) {

src/Response/CacheResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function cancel(): void
3333
{
3434
}
3535

36-
public function getInfo(string $type = null): mixed
36+
public function getInfo(?string $type = null): mixed
3737
{
3838
return [];
3939
}

0 commit comments

Comments
 (0)