Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Commit 39770a0

Browse files
committed
fix phpstan errors in ReferencesHandlerTest
1 parent 799bd1f commit 39770a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/LanguageServerReferenceFinder/Unit/Handler/ReferencesHandlerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class ReferencesHandlerTest extends TestCase
3131
const EXAMPLE_TEXT = 'hello';
3232

3333
/**
34-
* @var ObjectProphecy|ReferenceFinder
34+
* @var ObjectProphecy<ReferenceFinder>
3535
*/
3636
private $finder;
3737

3838
/**
39-
* @var ObjectProphecy
39+
* @var ObjectProphecy<DefinitionLocator>
4040
*/
4141
private $locator;
4242

@@ -116,7 +116,7 @@ public function testFindsReferencesIncludingDeclaration(): void
116116
ByteOffset::fromInt(0)
117117
)->willReturn(new DefinitionLocation($document->uri(), ByteOffset::fromInt(2)))->shouldBeCalled();
118118

119-
$response = $this->createTester(true)->requestAndWait(ReferencesRequest::METHOD, [
119+
$response = $this->createTester()->requestAndWait(ReferencesRequest::METHOD, [
120120
'textDocument' => ProtocolFactory::textDocumentIdentifier(self::EXAMPLE_URI),
121121
'position' => ProtocolFactory::position(0, 0),
122122
'context' => new ReferenceContext(true),
@@ -128,7 +128,7 @@ public function testFindsReferencesIncludingDeclaration(): void
128128
$this->assertInstanceOf(LspLocation::class, $lspLocation);
129129
}
130130

131-
public function testFindsReferencesIncludingDeclarationWhenDeclarationNotFound()
131+
public function testFindsReferencesIncludingDeclarationWhenDeclarationNotFound(): void
132132
{
133133
$document = TextDocumentBuilder::create(self::EXAMPLE_TEXT)
134134
->language('php')

0 commit comments

Comments
 (0)