|
|
|
@ -984,7 +984,7 @@ class SsaBuilder |
|
|
|
$defs[] = $stmt->valueVar->name; |
|
|
|
$defs[] = $stmt->valueVar->name; |
|
|
|
} |
|
|
|
} |
|
|
|
} elseif ($stmt instanceof Stmt\Catch_) { |
|
|
|
} elseif ($stmt instanceof Stmt\Catch_) { |
|
|
|
if (is_string($stmt->var->name)) { |
|
|
|
if ($stmt->var && is_string($stmt->var->name)) { |
|
|
|
$defs[] = $stmt->var->name; |
|
|
|
$defs[] = $stmt->var->name; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1223,7 +1223,7 @@ class SsaBuilder |
|
|
|
|
|
|
|
|
|
|
|
// Handle catch variables |
|
|
|
// Handle catch variables |
|
|
|
if ($stmt instanceof Stmt\Catch_) { |
|
|
|
if ($stmt instanceof Stmt\Catch_) { |
|
|
|
if (is_string($stmt->var->name)) { |
|
|
|
if ($stmt->var && is_string($stmt->var->name)) { |
|
|
|
$varName = $stmt->var->name; |
|
|
|
$varName = $stmt->var->name; |
|
|
|
$ssaId = $this->allocateSsaId(); |
|
|
|
$ssaId = $this->allocateSsaId(); |
|
|
|
$ssaVar = new SsaVar($ssaId, $varName, 0); |
|
|
|
$ssaVar = new SsaVar($ssaId, $varName, 0); |
|
|
|
|