Skip to content

Commit 450116e

Browse files
TysonAndrefelixfbecker
authored andcommitted
docs: remove unused use statements, nit on phpdoc (#625)
* Remove unused use statements, nit on phpdoc Add a note on something that looks like an invalid array index * Remove phpdoc param with no real param
1 parent b1cc565 commit 450116e

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

src/Cache/ClientCache.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
*/
1212
class ClientCache implements Cache
1313
{
14+
/**
15+
* @var LanguageClient
16+
*/
17+
public $client;
18+
1419
/**
1520
* @param LanguageClient $client
1621
*/

src/Client/TextDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace LanguageServer\Client;
55

66
use LanguageServer\ClientHandler;
7-
use LanguageServerProtocol\{TextDocumentItem, TextDocumentIdentifier};
7+
use LanguageServerProtocol\{Diagnostic, TextDocumentItem, TextDocumentIdentifier};
88
use Sabre\Event\Promise;
99
use JsonMapper;
1010

src/Definition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace LanguageServer;
55

66
use LanguageServer\Index\ReadableIndex;
7-
use phpDocumentor\Reflection\{Types, Type, Fqsen, TypeResolver};
7+
use phpDocumentor\Reflection\{Types, Type, TypeResolver};
88
use LanguageServerProtocol\SymbolInformation;
99
use Generator;
1010

@@ -80,7 +80,7 @@ class Definition
8080
* Can also be a compound type.
8181
* If it is unknown, will be Types\Mixed_.
8282
*
83-
* @var \phpDocumentor\Type|null
83+
* @var Type|null
8484
*/
8585
public $type;
8686

src/Index/Index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ public function unserialize($serialized)
274274
}
275275

276276
/**
277-
* @param string $serialized
278277
* @return string
279278
*/
280279
public function serialize()

src/PhpDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PhpDocument
6363
/**
6464
* Map from fully qualified name (FQN) to Node
6565
*
66-
* @var Node
66+
* @var Node[]
6767
*/
6868
private $definitionNodes;
6969

src/SignatureHelpProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
use LanguageServer\Index\ReadableIndex;
77
use LanguageServerProtocol\{
88
Position,
9-
SignatureHelp,
10-
ParameterInformation
9+
SignatureHelp
1110
};
1211
use Microsoft\PhpParser\Node;
1312
use Sabre\Event\Promise;

0 commit comments

Comments
 (0)