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 7c5e243 commit 79d8a8f
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 79d8a8f

Please sign in to comment.