Skip to content

Commit

Permalink
API Explicity mark nullable paramters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 4ba2132 commit 2b42165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/BlogPostFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BlogPostFilter extends Extension
* @param SQLSelect $query
* @param DataQuery $query
*/
protected function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
protected function augmentSQL(SQLSelect $query, ?DataQuery $dataQuery = null)
{

if (Controller::has_curr() && Controller::curr() instanceof LeftAndMain) {
Expand Down Expand Up @@ -60,7 +60,7 @@ protected function augmentSQL(SQLSelect $query, DataQuery $dataQuery = null)
* @param DataQuery $dataQuery
* @param DataObject $dataObject
*/
protected function augmentLoadLazyFields(SQLSelect &$query, DataQuery &$dataQuery = null, $dataObject)
protected function augmentLoadLazyFields(SQLSelect &$query, ?DataQuery &$dataQuery = null, $dataObject)
{
$blogPostTable = DataObject::getSchema()->tableName(BlogPost::class);
$dataQuery->innerJoin(
Expand Down

0 comments on commit 2b42165

Please sign in to comment.