Update src/PhpWord/TemplateProcessor.php

Co-authored-by: Progi1984 <progi1984@gmail.com>
This commit is contained in:
Krystian Marcisz 2022-11-06 19:01:58 +01:00 committed by simivar
parent 9a6eb6970d
commit 4b7e7e4612

View File

@ -1159,7 +1159,7 @@ class TemplateProcessor
*
* @throws \PhpOffice\PhpWord\Exception\Exception
*/
protected function findTableStart($offset)
protected function findTableStart(int $offset): int
{
$rowStart = strrpos($this->tempDocumentMainPart, '<w:tbl ',
((strlen($this->tempDocumentMainPart) - $offset) * -1));