Skip to content

Commit 67df150

Browse files
committed
update tests
1 parent 85d34f1 commit 67df150

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

tests/SearcherTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ public function it_can_handle_nullable_parameters()
295295
{
296296
$results = $this->getSearcher()
297297
->functions(['testFive'])
298+
->static(['one'])
298299
->search(tests_path('data/file5.php'));
299300

300301
$this->assertMatchesSnapshot($results->results);

tests/data/file5.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,15 @@ function testFive(?string $one)
44
{
55
return 'one';
66
}
7+
8+
class MyClassFive
9+
{
10+
public static function one(?int $value): ?int
11+
{
12+
return 1;
13+
}
14+
}
15+
16+
MyClassFive::one(null);
17+
18+

0 commit comments

Comments
 (0)