I have the following static function in a PHP class:
static function __callStatic($method,$args){ $called=NULL; if(empty(static::$collection)) static::slurp(); if(method_exists(static::$objtype,$method)){ foreach(static::$collection as $obj){ $called[]= call_user_func_array(array($obj, $method), $args); } } else if (property_exists(static::$objtype,$method)){
Static variables are defined, but may not have been set. It seems that the code does what I want and does not cause errors of any level. But still, my new installation of PDT Eclipse (Helios) marked every instance of static::$var as an "unexpected static" error. If I replace static::$var with self::$var , the Eclipse error will disappear, but then the code does not work.
How to convince Eclipse that these are not errors?
Eclipse for PHP developers Version: Helios Service Release 1 Build code: 20100917-0705 on 64-bit CentOS
source share