Skip to content

Commit 8ec24ad

Browse files
authored
Merge pull request #15 from jobcloud/chore/PRO-3141/solve-deprecations
chore(PRO-3141): solve deprecations; some cleanup
2 parents 409f9e1 + b1ab6d9 commit 8ec24ad

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"ext-libxml": "*",
2525
"ext-mbstring": "*",
2626
"ext-xmlreader": "*",
27-
"jobcloud/zendpdf": "^4.0.0"
27+
"jobcloud/zendpdf": "^4.0.1"
2828
},
2929
"require-dev": {
3030
"imagine/imagine": ">=0.2.0,<0.6.0",
31-
"phpunit/phpunit": "^8.5.44"
31+
"phpunit/phpunit": "^8.5.48"
3232
},
3333
"prefer-stable": true,
3434
"minimum-stability": "dev",

lib/PHPPdf/Core/Node/BasicList.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010

1111
use PHPPdf\Core\DrawingTaskHeap;
1212
use PHPPdf\Core\Node\BasicList\EnumerationStrategyFactory;
13-
use PHPPdf\Core\Node\BasicList\ImageEnumerationStrategy,
14-
PHPPdf\Core\Node\BasicList\EnumerationStrategy,
15-
PHPPdf\Core\Node\BasicList\OrderedEnumerationStrategy,
16-
PHPPdf\Core\Node\BasicList\UnorderedEnumerationStrategy,
13+
use PHPPdf\Core\Node\BasicList\EnumerationStrategy,
1714
PHPPdf\Core\Document,
1815
PHPPdf\Core\DrawingTask;
1916

@@ -38,6 +35,7 @@ class BasicList extends Container
3835
const LIST_POSITION_OUTSIDE = 'outside';
3936

4037
private $enumerationStrategy;
38+
private $enumerationStrategyFactory;
4139
private $omitEnumerationOfFirstElement = false;
4240

4341
protected static function setDefaultAttributes()

lib/PHPPdf/Core/Node/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@
1717
use PHPPdf\Core\UnitConverter;
1818
use PHPPdf\Core\Document;
1919
use PHPPdf\Util;
20-
use PHPPdf\Core\Node\Container;
2120
use PHPPdf\Core\Boundary;
2221
use PHPPdf\Core\DrawingTask;
23-
use PHPPdf\Core\Formatter\Formatter;
2422
use PHPPdf\Core\Node\Behaviour\Behaviour;
2523
use PHPPdf\Core\Exception\InvalidAttributeException;
2624
use PHPPdf\Core\Point;
@@ -87,6 +85,8 @@ abstract class Node implements Drawable, NodeAware, \ArrayAccess
8785

8886
private $preFormatInvoked = false;
8987

88+
private $drawingTasks = [];
89+
9090
public function __construct(array $attributes = [], ?UnitConverter $converter = null)
9191
{
9292
static::initializeTypeIfNecessary();

lib/PHPPdf/Core/Parser/XmlDocumentParser.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,13 @@
1111
use PHPPdf\Parser\XmlParser;
1212
use PHPPdf\Core\Document;
1313
use PHPPdf\Core\Node\Manager;
14-
use PHPPdf\Core\Node\NodeWrapper;
1514
use PHPPdf\Core\Node\Text,
1615
PHPPdf\Parser\Exception\ParseException,
1716
PHPPdf\Core\Node\NodeFactory,
1817
PHPPdf\Core\Node\PageCollection,
1918
PHPPdf\Core\Node\Node,
20-
PHPPdf\Core\Parser\BagContainer,
2119
PHPPdf\Core\Parser\Exception as Exceptions,
2220
PHPPdf\Core\ComplexAttribute\ComplexAttributeFactory,
23-
PHPPdf\Core\Parser\StylesheetConstraint,
2421
PHPPdf\Core\Node\Behaviour\Factory as BehaviourFactory;
2522

2623
/**
@@ -57,7 +54,9 @@ class XmlDocumentParser extends XmlParser implements DocumentParser
5754
private $isPreviousText = false;
5855

5956
private $currentParagraph = null;
60-
57+
58+
private $prototypes = [];
59+
6160
private $document;
6261

6362
private $listeners = array();

0 commit comments

Comments
 (0)