Merge pull request #176 from J-Fricke/php7

Implement PHP7 compatibility
This commit is contained in:
Fedor A. Fetisov 2016-11-18 14:07:35 +03:00 committed by GitHub
commit 9213453bc3
2 changed files with 5 additions and 5 deletions

View File

@ -18,8 +18,8 @@
"source": "https://github.com/mibew/mibew"
},
"require": {
"xamin/handlebars.php": "0.10.*",
"justblackbird/handlebars.php-helpers": "~0.2.1",
"xamin/handlebars.php": "~0.10.3",
"justblackbird/handlebars.php-helpers": "1.*",
"symfony/http-foundation": "2.6.*",
"symfony/routing": "2.6.*",
"symfony/config": "2.6.*",

View File

@ -47,9 +47,9 @@ class Helpers extends BaseHelpers
$this->add('ifAny', new HandlebarsHelpers\Comparison\IfAnyHelper());
$this->add('ifEven', new HandlebarsHelpers\Comparison\IfEvenHelper());
$this->add('ifOdd', new HandlebarsHelpers\Comparison\IfOddHelper());
$this->add('repeat', new HandlebarsHelpers\String\RepeatHelper());
$this->add('replace', new HandlebarsHelpers\String\ReplaceHelper());
$this->add('cutString', new HandlebarsHelpers\String\TruncateHelper());
$this->add('repeat', new HandlebarsHelpers\Text\RepeatHelper());
$this->add('replace', new HandlebarsHelpers\Text\ReplaceHelper());
$this->add('cutString', new HandlebarsHelpers\Text\TruncateHelper());
$blocks = new HandlebarsHelpers\Layout\BlockStorage();
$this->add('extends', new HandlebarsHelpers\Layout\ExtendsHelper($blocks));
$this->add('block', new HandlebarsHelpers\Layout\BlockHelper($blocks));