Skip to content

Commit

Permalink
Merge pull request #3032 from creative-commoners/pulls/6/php84
Browse files Browse the repository at this point in the history
API Explicity mark nullable parameters for PHP 8.4
  • Loading branch information
GuySartorelli authored Dec 2, 2024
2 parents 86c0708 + bbf24f8 commit 9ace9be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/Model/SiteTreeLinkTracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getParser()
* @param SiteTreeLinkTracking_Parser $parser
* @return $this
*/
public function setParser(SiteTreeLinkTracking_Parser $parser = null)
public function setParser(?SiteTreeLinkTracking_Parser $parser = null)
{
$this->parser = $parser;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions code/Search/SearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class SearchForm extends Form
* @param FieldList $actions Optional, defaults to a single field named "Go".
*/
public function __construct(
RequestHandler $controller = null,
?RequestHandler $controller = null,
$name = 'SearchForm',
FieldList $fields = null,
FieldList $actions = null
?FieldList $fields = null,
?FieldList $actions = null
) {
if (!$fields) {
$fields = new FieldList(
Expand Down

0 comments on commit 9ace9be

Please sign in to comment.