Skip to content

Commit

Permalink
Fix PHP 8.2 deprecated about Allow access to an undefined property
Browse files Browse the repository at this point in the history
  • Loading branch information
DAdq26 committed Aug 23, 2023
1 parent c6c25d1 commit aacd6c1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/PhpWord/Reader/MsDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ class MsDoc extends AbstractReader implements ReaderInterface
*/
private $dataObjectPool;

/**
* Object Stream.
*/
private $_SummaryInformation;

/**
* Object Stream.
*/
private $_DocumentSummaryInformation;

/**
* @var stdClass[]
*/
Expand Down
11 changes: 11 additions & 0 deletions src/PhpWord/Shared/OLERead.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ class OLERead
public $wrkObjectPool = null;
public $summaryInformation = null;
public $docSummaryInfos = null;
public $numBigBlockDepotBlocks = null;
public $rootStartBlock = null;
public $sbdStartBlock = null;
public $extensionBlock = null;
public $numExtensionBlocks = null;
public $bigBlockChain = null;
public $smallBlockChain = null;
public $entry = null;
public $rootentry = null;
public $wrkObjectPoolelseif = null;
public $props = array();

/**
* Read the file
Expand Down

0 comments on commit aacd6c1

Please sign in to comment.