We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1eaf1 commit e6c36b4Copy full SHA for e6c36b4
1 file changed
tests/RegressionTest.php
@@ -2039,6 +2039,16 @@ public static function contextProvider(): array
2039
'data' => ['flag' => true, 'name' => 'outer'],
2040
'expected' => '',
2041
],
2042
+
2043
+ '#16 - access array items with numeric keys' => [
2044
+ 'template' => "0: {{this.0.title}}\n1: {{this.1.title}}\n2: {{this.2.title}}",
2045
+ 'data' => [
2046
+ ['title' => 'Page A'],
2047
+ ['title' => 'Page B'],
2048
+ ['title' => 'Page C'],
2049
+ ],
2050
+ 'expected' => "0: Page A\n1: Page B\n2: Page C",
2051
2052
];
2053
}
2054
0 commit comments