Skip to content

Commit 2349c71

Browse files
authored
feat(view): fixes PHP 8.5 null offset deprecation warning (#1729)
1 parent f5b5cd3 commit 2349c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/view/src/Parser/TempestViewParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ final class TempestViewParser
99
private array $scope = [];
1010

1111
private ?Token $currentScope {
12-
get => $this->scope[array_key_last($this->scope)] ?? null;
12+
get => $this->scope[array_key_last($this->scope) ?? ''] ?? null;
1313
}
1414

1515
public function __construct(

0 commit comments

Comments
 (0)