mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 02:26:41 +03:00
fix php 5.3
This commit is contained in:
parent
fe4e79ed83
commit
27898aef88
@ -1385,19 +1385,19 @@ EOM;
|
|||||||
|
|
||||||
public function ifUnlessDepthDoesntChangeProvider()
|
public function ifUnlessDepthDoesntChangeProvider()
|
||||||
{
|
{
|
||||||
return [[
|
return array(array(
|
||||||
'{{#with b}}{{#if this}}{{../a}}{{/if}}{{/with}}',
|
'{{#with b}}{{#if this}}{{../a}}{{/if}}{{/with}}',
|
||||||
['a' => 'good', 'b' => 'stump'],
|
['a' => 'good', 'b' => 'stump'],
|
||||||
'good',
|
'good',
|
||||||
], [
|
), array(
|
||||||
'{{#with b}}{{#unless false}}{{../a}}{{/unless}}{{/with}}',
|
'{{#with b}}{{#unless false}}{{../a}}{{/unless}}{{/with}}',
|
||||||
['a' => 'good', 'b' => 'stump'],
|
['a' => 'good', 'b' => 'stump'],
|
||||||
'good',
|
'good',
|
||||||
], [
|
), array(
|
||||||
'{{#with foo}}{{#if goodbye}}GOODBYE cruel {{../world}}!{{/if}}{{/with}}',
|
'{{#with foo}}{{#if goodbye}}GOODBYE cruel {{../world}}!{{/if}}{{/with}}',
|
||||||
['foo' => ['goodbye' => true], 'world' => 'world'],
|
['foo' => ['goodbye' => true], 'world' => 'world'],
|
||||||
'GOODBYE cruel world!',
|
'GOODBYE cruel world!',
|
||||||
]];
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user