Calling isValid() on a Form instance before submitting it is not supported anymore and raises an exception.
Before:
if ($form->isValid()) {
// ...
}
After:
if ($form->isSubmitted() && $form->isValid()) {
// ...
}
/**
* Add HTML parts.
*
* Note: $stylesheet parameter is removed to avoid PHPMD error for unused parameter
*
* @param \PhpOffice\PhpWord\Element\AbstractContainer $element Where the parts need to be added
* @param string $html The code to parse
* @param bool $fullHTML If it's a full HTML, no need to add 'body' tag
* @return void
*/
public static function addHtml($element, $html, $fullHTML = false)