1
0
Fork 0
php-language-server/fixtures/diagnostics/errors
alWerewolf 47d6424c98 Tolerate $this usage in anonymous functions
Alternative solution for issue 536.
Gives warning "$this might not be bound by invoker of callable or might be bound to object of any class. Consider adding instance class check." for $this var usage.
And hints developer to check class of $this before usage.
Class check can be added in form "if ($this instanceof [class])" {/*use $this*/}.
Note: if class check added no type checking is done its in language server it just hides the warning.
2017-11-30 18:02:34 +03:00
..
this_in_function.php feat(diagnostics): report error when $this is used in a static method or outside a class method (#528) 2017-11-18 17:41:37 -08:00
this_in_root.php feat(diagnostics): report error when $this is used in a static method or outside a class method (#528) 2017-11-18 17:41:37 -08:00
this_in_static_anonymous_function.php Tolerate $this usage in anonymous functions 2017-11-30 18:02:34 +03:00
this_in_static_method.php feat(diagnostics): report error when $this is used in a static method or outside a class method (#528) 2017-11-18 17:41:37 -08:00