Merge pull request #9007 from NightJar/pulls/4.0/headerfield

FIX HeaderField requires the optional Title field
This commit is contained in:
Robbie Averill 2019-05-27 10:50:15 +12:00 committed by GitHub
commit 58791e52b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ class HeaderField extends DatalessField
* @param string $title
* @param int $headingLevel
*/
public function __construct($name, $title, $headingLevel = 2)
public function __construct($name, $title = null, $headingLevel = 2)
{
$this->setHeadingLevel($headingLevel);
parent::__construct($name, $title);