IOFactory::load failed and the funtion setCommentReference not working #2614
Labels
Bug Report
Status: Waiting for feedback
Question has been asked, waiting for response from PR author
Describe the bug and add attachments
When i used
IOFactory::load
function to load my docx file,throw by:Argument 3 passed to PhpOffice\PhpWord\Reader\Word2007\AbstractPart::setCommentReference() must be an instance of PhpOffice\PhpWord\Element\AbstractElement, null given, called in vendor/phpoffice/phpword/src/PhpWord/Reader/Word2007/AbstractPart.php on line 337
It should be that the
$element
in thissetCommentReference
uses the type specifier,because it works fine in1.1.0
PS: my file
file command tips
:Microsoft Word 2007+
Expected behavior
Load word successed
Steps to reproduce
Code:
$word = IOFactory::load($path, $readName);
PHPWord version(s) where the bug happened
1.2.0
PHP version(s) where the bug happened
7.2
The text was updated successfully, but these errors were encountered: