Revert default argument change

This commit is contained in:
Damian Mooyman 2018-09-17 18:24:03 +12:00
parent 690f0cc793
commit ce8ba85182
No known key found for this signature in database
GPG Key ID: 4327857F75021D92

View File

@ -66,11 +66,11 @@ class TagField extends DropdownField
/**
* @param string $name
* @param string $title
* @param null|DataList $source
* @param null|DataList|array $source
* @param null|DataList $value
* @param string $titleField
*/
public function __construct($name, $title = '', $source = null, $value = null, $titleField = 'Title')
public function __construct($name, $title = '', $source = [], $value = null, $titleField = 'Title')
{
$this->setTitleField($titleField);
parent::__construct($name, $title, $source, $value);