diff --git a/src/PhpPresentation/Reader/PowerPoint2007.php b/src/PhpPresentation/Reader/PowerPoint2007.php index ad0deb9767..7f9840c3f0 100644 --- a/src/PhpPresentation/Reader/PowerPoint2007.php +++ b/src/PhpPresentation/Reader/PowerPoint2007.php @@ -885,7 +885,7 @@ protected function loadShapeDrawing(XMLReader $document, DOMElement $node, Abstr $oSlide->addShape($oShape); } - protected function loadShapeRichText(XMLReader $document, DOMElement $node, AbstractSlide $oSlide): void + protected function loadShapeRichText(XMLReader $document, DOMElement $node, $oSlide): void { if (!$document->elementExists('p:txBody/a:p/a:r', $node)) { return; diff --git a/tests/PhpPresentation/Tests/Reader/PowerPoint2007Test.php b/tests/PhpPresentation/Tests/Reader/PowerPoint2007Test.php index 7db18c9e1e..42cc5d3100 100644 --- a/tests/PhpPresentation/Tests/Reader/PowerPoint2007Test.php +++ b/tests/PhpPresentation/Tests/Reader/PowerPoint2007Test.php @@ -615,4 +615,12 @@ public function testSlideLayout(): void $this->assertCount(11, $masterSlides[1]->getAllSlideLayouts()); $this->assertCount(11, $masterSlides[2]->getAllSlideLayouts()); } + + public function testLoadingFileWithNoteInSlide(): void + { + $file = PHPPRESENTATION_TESTS_BASE_DIR . '/resources/files/Issue_00694.pptx'; + $object = new PowerPoint2007(); + $oPhpPresentation = $object->load($file); + $this->assertInstanceOf('PhpOffice\\PhpPresentation\\PhpPresentation', $oPhpPresentation); + } } diff --git a/tests/resources/files/Issue_00694.pptx b/tests/resources/files/Issue_00694.pptx new file mode 100644 index 0000000000..812dd0cddd Binary files /dev/null and b/tests/resources/files/Issue_00694.pptx differ