src/Analysers/Php53Features.php 1 location
|
@@ 216-220 (lines=5) @@
|
| 213 |
|
*/ |
| 214 |
|
private function detectDynamicAccessToStatic(Node $node) |
| 215 |
|
{ |
| 216 |
|
if (($node instanceof Node\Expr\StaticPropertyFetch || $node instanceof Node\Expr\StaticCall) |
| 217 |
|
&& $node->class instanceof Node\Expr |
| 218 |
|
) { |
| 219 |
|
$this->getResult()->addRequirement(Reason::DYNAMIC_ACCESS_TO_STATIC, $node->getLine()); |
| 220 |
|
} |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
/** |
src/Analysers/Php54Features.php 1 location
|
@@ 218-220 (lines=3) @@
|
| 215 |
|
|
| 216 |
|
private function handleStaticCallByExpressionSyntax(Node $node) |
| 217 |
|
{ |
| 218 |
|
if ($node instanceof Node\Expr\StaticCall && $node->name instanceof Node\Expr) { |
| 219 |
|
$this->getResult()->addRequirement(Reason::STATIC_CALL_BY_EXPRESSION, $node->getLine()); |
| 220 |
|
} |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
private function detectShortEchoSyntax(Node $node) |