Skip to content

Commit 2d8c6de

Browse files
committed
Fix 1
1 parent 0ba11cb commit 2d8c6de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Files/File.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,10 @@ public function getMemberProperties($stackPtr)
18761876
throw new RuntimeException('$stackPtr must be of type T_VARIABLE');
18771877
}
18781878

1879+
if (empty($this->tokens[$stackPtr]['conditions']) === true) {
1880+
throw new RuntimeException('$stackPtr is not a class member var');
1881+
}
1882+
18791883
$conditions = array_keys($this->tokens[$stackPtr]['conditions']);
18801884
$ptr = array_pop($conditions);
18811885
if (isset($this->tokens[$ptr]) === false

0 commit comments

Comments
 (0)