Skip to content

Commit

Permalink
Fix the "parameter.implicitlyNullable" reports from phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Dec 13, 2024
1 parent 7a43ff9 commit 5c758d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 5c758d8

Please sign in to comment.