Skip to content

Commit

Permalink
Wordpress: Fixing deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
hexplor committed Oct 23, 2023
1 parent caafa29 commit 278e9ce
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 41 deletions.
8 changes: 4 additions & 4 deletions platforms/wordpress/gantry5/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"filp/whoops": "~2.5",
"rockettheme/toolbox": "~1.5",
"erusev/parsedown-extra": "~0.7",
"timber/timber": "^1.14",
"timber/timber": "1.23",

"twig/twig": "~1.42",
"scssphp/scssphp": "1.6.0",
"twig/twig": "1.44.7",
"scssphp/scssphp": "1.10",
"leafo/scssphp": "0.8.4"
},
"require-dev": {
Expand All @@ -36,7 +36,7 @@
"composer/installers": true
},
"platform": {
"php": "5.6.20"
"php": "7.2.5"
}
}
}
80 changes: 46 additions & 34 deletions platforms/wordpress/gantry5/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,13 @@ protected function handleImportLoop($name)
{
for ($env = $this->env; $env; $env = $env->parent) {
$file = $this->streamNames[$env->block->sourceIndex];

if (realpath($file) === $name) {
if ($file !== null && realpath($file) === $name) {
$this->throwError('An @import loop has been found: %s imports %s', $file, Gantry::basename($file));
break;
}
}
}
}

/**
* Override function to improve the logic.
Expand Down

0 comments on commit 278e9ce

Please sign in to comment.