Skip to content

Commit

Permalink
Merge pull request #5 from magento-gl/php84_deprication_fix
Browse files Browse the repository at this point in the history
Php84 deprication fix
  • Loading branch information
glo71317 authored Dec 18, 2024
2 parents 4426cdf + 812051f commit b6e9fcb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ public function getOpenAction()
* @param Zend_Pdf_Target $openAction
* @returns Zend_Pdf
*/
public function setOpenAction(Zend_Pdf_Target $openAction = null)
public function setOpenAction(?Zend_Pdf_Target $openAction = null)
{
$root = $this->_trailer->Root;
$root->touch();
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Pdf/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $proc
* @return Zend_Pdf_Action
* @throws Zend_Pdf_Exception
*/
public static function load(Zend_Pdf_Element $dictionary, SplObjectStorage $processedActions = null)
public static function load(Zend_Pdf_Element $dictionary, ?SplObjectStorage $processedActions = null)
{
if ($processedActions === null) {
$processedActions = new SplObjectStorage();
Expand Down Expand Up @@ -252,7 +252,7 @@ public function getResource()
* @param SplObjectStorage $processedActions list of already processed actions (used to prevent infinity loop caused by cyclic references)
* @return Zend_Pdf_Element_Object|Zend_Pdf_Element_Reference Dictionary indirect object
*/
public function dumpAction(Zend_Pdf_ElementFactory_Interface $factory, SplObjectStorage $processedActions = null)
public function dumpAction(Zend_Pdf_ElementFactory_Interface $factory, ?SplObjectStorage $processedActions = null)
{
if ($processedActions === null) {
$processedActions = new SplObjectStorage();
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Pdf/Outline.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ public function openOutlinesCount()
abstract public function dumpOutline(Zend_Pdf_ElementFactory_Interface $factory,
$updateNavigation,
Zend_Pdf_Element $parent,
Zend_Pdf_Element $prev = null,
SplObjectStorage $processedOutlines = null);
?Zend_Pdf_Element $prev = null,
?SplObjectStorage $processedOutlines = null);


////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions library/Zend/Pdf/Outline/Created.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public function __construct($options = array())
public function dumpOutline(Zend_Pdf_ElementFactory_Interface $factory,
$updateNavigation,
Zend_Pdf_Element $parent,
Zend_Pdf_Element $prev = null,
SplObjectStorage $processedOutlines = null)
?Zend_Pdf_Element $prev = null,
?SplObjectStorage $processedOutlines = null)
{
if ($processedOutlines === null) {
$processedOutlines = new SplObjectStorage();
Expand Down
6 changes: 3 additions & 3 deletions library/Zend/Pdf/Outline/Loaded.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function setOptions(array $options)
* @return Zend_Pdf_Action
* @throws Zend_Pdf_Exception
*/
public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $processedDictionaries = null)
public function __construct(Zend_Pdf_Element $dictionary, ?SplObjectStorage $processedDictionaries = null)
{
if ($dictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) {
#require_once 'Zend/Pdf/Exception.php';
Expand Down Expand Up @@ -372,8 +372,8 @@ public function __construct(Zend_Pdf_Element $dictionary, SplObjectStorage $proc
public function dumpOutline(Zend_Pdf_ElementFactory_Interface $factory,
$updateNavigation,
Zend_Pdf_Element $parent,
Zend_Pdf_Element $prev = null,
SplObjectStorage $processedOutlines = null)
?Zend_Pdf_Element $prev = null,
?SplObjectStorage $processedOutlines = null)
{
if ($processedOutlines === null) {
$processedOutlines = new SplObjectStorage();
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Pdf/Resource/GraphicsState.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Zend_Pdf_Resource_GraphicsState extends Zend_Pdf_Resource
* @param Zend_Pdf_Element_Object $extGStateObject
* @throws Zend_Pdf_Exception
*/
public function __construct(Zend_Pdf_Element_Object $extGStateObject = null)
public function __construct(?Zend_Pdf_Element_Object $extGStateObject = null)
{
if ($extGStateObject == null) {
// Create new Graphics State object
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Pdf/Trailer/Keeper.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Zend_Pdf_Trailer_Keeper extends Zend_Pdf_Trailer
*/
public function __construct(Zend_Pdf_Element_Dictionary $dict,
Zend_Pdf_Element_Reference_Context $context,
Zend_Pdf_Trailer $prev = null)
?Zend_Pdf_Trailer $prev = null)
{
parent::__construct($dict);

Expand Down

0 comments on commit b6e9fcb

Please sign in to comment.