Skip to content

Commit a71404a

Browse files
committed
1 parent 93a0426 commit a71404a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpfmt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ protected function leftMemoUsefulTokenIs( $token, $debug = false ) {
17141714
protected function leftToken( $ignoreList = [] ) {
17151715
$i = $this->leftTokenIdx( $ignoreList );
17161716

1717-
return $this->tkns[$i];
1717+
return isset( $this->tkns[$i] ) ? $this->tkns[$i] : null;
17181718
}
17191719

17201720
protected function leftTokenIdx( $ignoreList = [] ) {

0 commit comments

Comments
 (0)