Skip to content

Commit 11d514d

Browse files
authored
Update Template.php
1 parent c85d6e7 commit 11d514d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private static function resolvePath($path, $data)
156156
{
157157
$current = $data;
158158
foreach (explode('.', $path) as $p) {
159-
if (!isset($current[$p])) {
159+
if (!array_key_exists($p, $current)) {
160160
throw new \Exception("path '$p' not found");
161161
}
162162
$current = &$current[$p];

0 commit comments

Comments
 (0)