Skip to content

Commit

Permalink
Merge pull request #441 from elecena/php/8.2
Browse files Browse the repository at this point in the history
Require PHP 8.2+
  • Loading branch information
macbre authored Dec 13, 2024
2 parents 940109d + 5c758d8 commit 1e60667
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
strategy:
matrix:
php-versions:
- '8.1'
- '8.2'
- '8.3'
- '8.4'

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
fail-fast: false
matrix:
php-versions:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
redis-versions:
- "5.0.9"
# - "6.0"
Expand Down
2 changes: 1 addition & 1 deletion classes/NanoBaseTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function setUp(): void
* @param callable|null $onQuery optional callback
* @return NanoDatabaseMock
*/
protected function getDatabaseMock(array $result = [], callable $onQuery = null): NanoDatabaseMock
protected function getDatabaseMock(array $result = [], ?callable $onQuery = null): NanoDatabaseMock
{
$mock = new NanoDatabaseMock($this->app);

Expand Down
2 changes: 1 addition & 1 deletion classes/NanoDatabaseMock.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct($app)
/**
* @param callable|null $callback
*/
public function setOnQueryCallback(callable $callback = null)
public function setOnQueryCallback(?callable $callback = null)
{
$this->onQueryCallback = $callback;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-mysqli": "*",
"ext-curl": "*",
"ext-mbstring": "*",
Expand Down
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e60667

Please sign in to comment.