diff --git a/src/Model/BlogPostFilter.php b/src/Model/BlogPostFilter.php index e76635f1..12346f31 100644 --- a/src/Model/BlogPostFilter.php +++ b/src/Model/BlogPostFilter.php @@ -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) { @@ -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, $dataObject) { $blogPostTable = DataObject::getSchema()->tableName(BlogPost::class); $dataQuery->innerJoin(