Skip to content

Commit b6e9fcb

Browse files
authored
Merge pull request #5 from magento-gl/php84_deprication_fix
Php84 deprication fix
2 parents 4426cdf + 812051f commit b6e9fcb

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

library/Zend/Pdf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ public function getOpenAction()
10131013
* @param Zend_Pdf_Target $openAction
10141014
* @returns Zend_Pdf
10151015
*/
1016-
public function setOpenAction(Zend_Pdf_Target $openAction = null)
1016+
public function setOpenAction(?Zend_Pdf_Target $openAction = null)
10171017
{
10181018
$root = $this->_trailer->Root;
10191019
$root->touch();

library/Zend/Pdf/Action.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $proc
112112
* @return Zend_Pdf_Action
113113
* @throws Zend_Pdf_Exception
114114
*/
115-
public static function load(Zend_Pdf_Element $dictionary, SplObjectStorage $processedActions = null)
115+
public static function load(Zend_Pdf_Element $dictionary, ?SplObjectStorage $processedActions = null)
116116
{
117117
if ($processedActions === null) {
118118
$processedActions = new SplObjectStorage();
@@ -252,7 +252,7 @@ public function getResource()
252252
* @param SplObjectStorage $processedActions list of already processed actions (used to prevent infinity loop caused by cyclic references)
253253
* @return Zend_Pdf_Element_Object|Zend_Pdf_Element_Reference Dictionary indirect object
254254
*/
255-
public function dumpAction(Zend_Pdf_ElementFactory_Interface $factory, SplObjectStorage $processedActions = null)
255+
public function dumpAction(Zend_Pdf_ElementFactory_Interface $factory, ?SplObjectStorage $processedActions = null)
256256
{
257257
if ($processedActions === null) {
258258
$processedActions = new SplObjectStorage();

library/Zend/Pdf/Outline.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ public function openOutlinesCount()
325325
abstract public function dumpOutline(Zend_Pdf_ElementFactory_Interface $factory,
326326
$updateNavigation,
327327
Zend_Pdf_Element $parent,
328-
Zend_Pdf_Element $prev = null,
329-
SplObjectStorage $processedOutlines = null);
328+
?Zend_Pdf_Element $prev = null,
329+
?SplObjectStorage $processedOutlines = null);
330330

331331

332332
////////////////////////////////////////////////////////////////////////

library/Zend/Pdf/Outline/Created.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ public function __construct($options = array())
202202
public function dumpOutline(Zend_Pdf_ElementFactory_Interface $factory,
203203
$updateNavigation,
204204
Zend_Pdf_Element $parent,
205-
Zend_Pdf_Element $prev = null,
206-
SplObjectStorage $processedOutlines = null)
205+
?Zend_Pdf_Element $prev = null,
206+
?SplObjectStorage $processedOutlines = null)
207207
{
208208
if ($processedOutlines === null) {
209209
$processedOutlines = new SplObjectStorage();

library/Zend/Pdf/Outline/Loaded.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function setOptions(array $options)
308308
* @return Zend_Pdf_Action
309309
* @throws Zend_Pdf_Exception
310310
*/
311-
public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $processedDictionaries = null)
311+
public function __construct(Zend_Pdf_Element $dictionary, ?SplObjectStorage $processedDictionaries = null)
312312
{
313313
if ($dictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) {
314314
#require_once 'Zend/Pdf/Exception.php';
@@ -372,8 +372,8 @@ public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $proc
372372
public function dumpOutline(Zend_Pdf_ElementFactory_Interface $factory,
373373
$updateNavigation,
374374
Zend_Pdf_Element $parent,
375-
Zend_Pdf_Element $prev = null,
376-
SplObjectStorage $processedOutlines = null)
375+
?Zend_Pdf_Element $prev = null,
376+
?SplObjectStorage $processedOutlines = null)
377377
{
378378
if ($processedOutlines === null) {
379379
$processedOutlines = new SplObjectStorage();

library/Zend/Pdf/Resource/GraphicsState.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Zend_Pdf_Resource_GraphicsState extends Zend_Pdf_Resource
5050
* @param Zend_Pdf_Element_Object $extGStateObject
5151
* @throws Zend_Pdf_Exception
5252
*/
53-
public function __construct(Zend_Pdf_Element_Object $extGStateObject = null)
53+
public function __construct(?Zend_Pdf_Element_Object $extGStateObject = null)
5454
{
5555
if ($extGStateObject == null) {
5656
// Create new Graphics State object

library/Zend/Pdf/Trailer/Keeper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Zend_Pdf_Trailer_Keeper extends Zend_Pdf_Trailer
5757
*/
5858
public function __construct(Zend_Pdf_Element_Dictionary $dict,
5959
Zend_Pdf_Element_Reference_Context $context,
60-
Zend_Pdf_Trailer $prev = null)
60+
?Zend_Pdf_Trailer $prev = null)
6161
{
6262
parent::__construct($dict);
6363

0 commit comments

Comments
 (0)