I've got some problems with PHP Semantic Analysis in Eclipse PDT. I'm getting "undefined variable" warning in cases like this:
a.php:
<?php
$a = "var";
?>
b.php:
<?php
/* @var $a String */
/* @var $var String */
include a.php;
echo $a; // Eclipse says $a is undefined
$arr = ["var" => "val"];
extract($arr);
echo $var; // Eclipse says $var is undefined
?>
I've tried to notify Eclipse about those variables by PhpDoc syntax but it ignores it.
Is there any way to get rid of the warning not turning it off?