Skip to content

Commit 0c846ba

Browse files
committed
Fix compatibility with PHP 8.4
1 parent 92b6686 commit 0c846ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
php: ['7.4', '8.0', '8.1', '8.2']
12+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1313
fail-fast: false
1414

1515
name: PHP ${{ matrix.php }} tests

LeanMapperQuery/IQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface IQuery
2525
* @param QueryTarget\ITarget|null $target
2626
* @return Fluent
2727
*/
28-
public function applyQuery(Fluent $fluent, IMapper $mapper, QueryTarget\ITarget $target = null);
28+
public function applyQuery(Fluent $fluent, IMapper $mapper, ?QueryTarget\ITarget $target = null);
2929

3030
/**
3131
* @return string

LeanMapperQuery/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public function cast($entityClass)
455455
* @inheritdoc
456456
* @throws InvalidArgumentException
457457
*/
458-
public function applyQuery(Fluent $fluent, IMapper $mapper, QueryTarget\ITarget $target = null)
458+
public function applyQuery(Fluent $fluent, IMapper $mapper, ?QueryTarget\ITarget $target = null)
459459
{
460460
$targetTable = null;
461461

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"tharos/leanmapper": ">=3.0"
2323
},
2424
"require-dev": {
25-
"nette/tester": "~2.3.4",
25+
"nette/tester": "~2.0",
2626
"phpstan/phpstan": "^1.8"
2727
}
2828
}

0 commit comments

Comments
 (0)