Skip to content

Commit

Permalink
fixe for issue GH-211 was not backported to version 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Feb 23, 2016
1 parent 589f320 commit 8e6c0aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Bartlett/CompatInfo/Analyser/CompatibilityAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,13 @@ private function computePhpFeatureVersions(Node $node)
$this->updateContextVersion($versions);
}

} elseif ($node instanceof Node\Expr\AssignOp\Pow) {
// Exponentiation
$versions = array('php.min' => '5.6.0');
// update current and parent context
$this->updateElementVersion($element, $name, $versions);
$this->updateContextVersion($versions);

} elseif ($node instanceof Node\Expr\StaticCall
&& $node->class instanceof Node\Expr\Variable
) {
Expand Down

0 comments on commit 8e6c0aa

Please sign in to comment.