Skip to content

Commit

Permalink
docs: remove unused use statements, nit on phpdoc (#625)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
TysonAndre authored and felixfbecker committed Nov 11, 2018
1 parent b1cc565 commit 450116e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/Cache/ClientCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
*/
class ClientCache implements Cache
{
/**
* @var LanguageClient
*/
public $client;

/**
* @param LanguageClient $client
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Client/TextDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace LanguageServer\Client;

use LanguageServer\ClientHandler;
use LanguageServerProtocol\{TextDocumentItem, TextDocumentIdentifier};
use LanguageServerProtocol\{Diagnostic, TextDocumentItem, TextDocumentIdentifier};
use Sabre\Event\Promise;
use JsonMapper;

Expand Down
4 changes: 2 additions & 2 deletions src/Definition.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace LanguageServer;

use LanguageServer\Index\ReadableIndex;
use phpDocumentor\Reflection\{Types, Type, Fqsen, TypeResolver};
use phpDocumentor\Reflection\{Types, Type, TypeResolver};
use LanguageServerProtocol\SymbolInformation;
use Generator;

Expand Down Expand Up @@ -80,7 +80,7 @@ class Definition
* Can also be a compound type.
* If it is unknown, will be Types\Mixed_.
*
* @var \phpDocumentor\Type|null
* @var Type|null
*/
public $type;

Expand Down
1 change: 0 additions & 1 deletion src/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ public function unserialize($serialized)
}

/**
* @param string $serialized
* @return string
*/
public function serialize()
Expand Down
2 changes: 1 addition & 1 deletion src/PhpDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class PhpDocument
/**
* Map from fully qualified name (FQN) to Node
*
* @var Node
* @var Node[]
*/
private $definitionNodes;

Expand Down
3 changes: 1 addition & 2 deletions src/SignatureHelpProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
use LanguageServer\Index\ReadableIndex;
use LanguageServerProtocol\{
Position,
SignatureHelp,
ParameterInformation
SignatureHelp
};
use Microsoft\PhpParser\Node;
use Sabre\Event\Promise;
Expand Down

0 comments on commit 450116e

Please sign in to comment.