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 [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists