Skip to content

Commit c196b1a

Browse files
committed
Fixed PHP 8.2 deprecation warnings: 'creation of dynamic property'.
1 parent 120ad9e commit c196b1a

31 files changed

+83
-120
lines changed

library/Zend/Pdf.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
8282
* @license http://framework.zend.com/license/new-bsd New BSD License
8383
*/
84-
#[\AllowDynamicProperties]
8584
class Zend_Pdf
8685
{
8786
/**** Class Constants ****/
@@ -207,6 +206,13 @@ class Zend_Pdf
207206
*/
208207
protected $_parser;
209208

209+
/**
210+
* PDF version specified in the file header
211+
*
212+
* @var string
213+
*/
214+
protected $_pdfHeaderVersion;
215+
210216
/**
211217
* List of inheritable attributesfor pages tree
212218
*

library/Zend/Pdf/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,6 @@ public function hasChildren()
407407
#[\ReturnTypeWillChange]
408408
public function count()
409409
{
410-
return count($this->childOutlines);
410+
return count($this->next);
411411
}
412412
}

library/Zend/Pdf/Canvas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct($width, $height)
7777
*/
7878
protected function _addProcSet($procSetName)
7979
{
80-
$this->_procset[$procSetName] = 1;
80+
$this->_procSet[$procSetName] = 1;
8181
}
8282

8383
/**

library/Zend/Pdf/Canvas/Abstract.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ abstract class Zend_Pdf_Canvas_Abstract implements Zend_Pdf_Canvas_Interface
7474
*/
7575
protected $_style = null;
7676

77+
/**
78+
* Page dictionary (refers to an inderect Zend_Pdf_Element_Dictionary object).
79+
*
80+
* @var Zend_Pdf_Element_Reference|Zend_Pdf_Element_Object
81+
*/
82+
protected $_dictionary;
83+
7784

7885
/**
7986
* Counter for the "Save" operations

library/Zend/Pdf/Element.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ abstract class Zend_Pdf_Element
4545
*/
4646
private $_parentObject = null;
4747

48+
/**
49+
* Object value
50+
*
51+
* @var string
52+
*/
53+
public $value;
54+
4855
/**
4956
* Return type of the element.
5057
* See ZPdfPDFConst for possible values

library/Zend/Pdf/Element/Boolean.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
*/
3535
class Zend_Pdf_Element_Boolean extends Zend_Pdf_Element
3636
{
37-
/**
38-
* Object value
39-
*
40-
* @var boolean
41-
*/
42-
public $value;
43-
44-
4537
/**
4638
* Object constructor
4739
*

library/Zend/Pdf/Element/Name.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
*/
3535
class Zend_Pdf_Element_Name extends Zend_Pdf_Element
3636
{
37-
/**
38-
* Object value
39-
*
40-
* @var string
41-
*/
42-
public $value;
43-
44-
4537
/**
4638
* Object constructor
4739
*

library/Zend/Pdf/Element/Null.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
*/
3535
class Zend_Pdf_Element_Null extends Zend_Pdf_Element
3636
{
37-
/**
38-
* Object value. Always null.
39-
*
40-
* @var mixed
41-
*/
42-
public $value;
43-
44-
4537
/**
4638
* Object constructor
4739
*/

library/Zend/Pdf/Element/Numeric.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@
3434
*/
3535
class Zend_Pdf_Element_Numeric extends Zend_Pdf_Element
3636
{
37-
/**
38-
* Object value
39-
*
40-
* @var numeric
41-
*/
42-
public $value;
43-
44-
4537
/**
4638
* Object constructor
4739
*

library/Zend/Pdf/Element/Stream.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
*/
3838
class Zend_Pdf_Element_Stream extends Zend_Pdf_Element
3939
{
40-
/**
41-
* Object value
42-
*
43-
* @var Zend_Memory_Container
44-
*/
45-
public $value;
46-
47-
4840
/**
4941
* Object constructor
5042
*

0 commit comments

Comments
 (0)