GitHub user matthiasblaesing added a comment to the discussion: PHP: Shouldn't 
a call to an undefined function trigger an error in the editor?

Are you looking for this?

```php
<?php

class Test {
    public function __call($name, $arguments) {
        if($name == 'hello') {
            printf("Hello %s\n", $arguments[0]);
        }
    }

    public static function __callStatic($name, $arguments) {
        if($name == 'flexibility') {
            printf("Isn't flexibility %s\n", $arguments[0]);
        }
    }
}

$t = new Test();
$t->foo();

$t->x = "Demo";

echo $t->x . "\n";

$t->hello("World");

Test::flexibility('ugly');
```

Sure, for selected cases you can do a full analysis, for others (like these) 
this won't work.

GitHub link: 
https://github.com/apache/netbeans/discussions/8573#discussioncomment-13434927

----
This is an automatically sent email for notifications@netbeans.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@netbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to