Skip to content

Commit

Permalink
fix for missing combine() variable $extras, causing notice on php 7.3
Browse files Browse the repository at this point in the history
error 'Notice' with message 'compact(): Undefined variable: extras'
  • Loading branch information
marcing committed Jan 23, 2019
1 parent 61363f2 commit 89acaef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Zend/View/Helper/HeadLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ public function createDataStylesheet(array $args)
$media = 'screen';
$conditionalStylesheet = false;
$href = array_shift($args);
$extras = []; // php 7.3 fix

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

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

0 comments on commit 89acaef

Please sign in to comment.