1
0
Fork 0
php-language-server/tests
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
..
Diagnostics Tolerate $this usage in anonymous functions 2017-11-30 18:02:34 +03:00
Index test(index): add IndexTest 2017-11-15 13:08:15 -08:00
NodeVisitor Adopt Microsoft/tolerant-php-parser (#357) 2017-06-09 20:25:30 +02:00
Server fix(indexing): properly resolve self, static and parent keywords (#532) 2017-11-18 16:59:57 -08:00
Utils Completion (#165) 2016-11-30 22:23:51 +01:00
Validation fix(indexing): properly resolve self, static and parent keywords (#532) 2017-11-18 16:59:57 -08:00
ClientHandlerTest.php Handle Client responses (#128) 2016-10-31 11:47:21 +01:00
DefinitionResolverTest.php Rename $stmts to $sourceFileNode everywhere 2017-06-10 21:36:16 +02:00
LanguageServerTest.php fix(formatting): drop PHP CodeSniffer (#504) 2017-11-04 23:57:51 -07:00
MockPhpDocument.php Allow getting type from define() node (#363) 2017-04-24 11:11:40 +02:00
MockProtocolStream.php Enable LS to operate without accessing the file system (#136) 2016-11-14 10:25:44 +01:00
PhpDocumentLoaderTest.php Adopt Microsoft/tolerant-php-parser (#357) 2017-06-09 20:25:30 +02:00
PhpDocumentTest.php Adopt Microsoft/tolerant-php-parser (#357) 2017-06-09 20:25:30 +02:00
ProtocolStreamReaderTest.php Correct ProtocolStreamReaderTest 2016-11-06 15:59:32 +01:00
ProtocolStreamWriterTest.php Simplify ProtocolStreamWriterTest 2016-10-31 10:23:37 +01:00