Skip to content

Commit

Permalink
Merge pull request #2 from glensc/patch-1
Browse files Browse the repository at this point in the history
headlink: restore php < 5.4 compatibility
  • Loading branch information
falkenhawk authored May 6, 2019
2 parents 89acaef + c7363a0 commit d6c37a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/View/Helper/HeadLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function createDataStylesheet(array $args)
$media = 'screen';
$conditionalStylesheet = false;
$href = array_shift($args);
$extras = []; // php 7.3 fix
$extras = array();

if ($this->_isDuplicateStylesheet($href)) {
return false;
Expand Down Expand Up @@ -441,7 +441,7 @@ public function createDataAlternate(array $args)
$href = array_shift($args);
$type = array_shift($args);
$title = array_shift($args);
$extras = []; // php 7.3 fix
$extras = array();

if(0 < count($args) && is_array($args[0])) {
$extras = array_shift($args);
Expand Down

0 comments on commit d6c37a5

Please sign in to comment.