Skip to content

Commit

Permalink
php 8 deprecation on required params
Browse files Browse the repository at this point in the history
  • Loading branch information
vipen-made committed Feb 23, 2022
1 parent b2a0e4a commit 90362c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/HasOnePickerField.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class HasOnePickerField extends PickerField {
* @param string $linkExistingTitle - AddExisting Button Title
*/

public function __construct(DataObject $childObject, $name, $title = null, $currentHasOne, $linkExistingTitle = null, $searchContext = null) {
public function __construct(DataObject $childObject, $name, $title = null, $currentHasOne = null, $linkExistingTitle = null, $searchContext = null) {

$modelClass = $childObject->getRelationClass(str_replace('ID', '', $name));
if(!$modelClass) {
Expand Down

0 comments on commit 90362c8

Please sign in to comment.