forked from SublimeLinter/SublimeLinter-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathreference.php
47 lines (32 loc) · 1.11 KB
/
reference.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* This file is used as a reference when updating the plugin.
* It should properly highlight an error on each line where there is an error identifier in the comments.
*/
use Domain\UseCase;
use Domain\UseCaseInterface;
class HelloWorld extends UseCase implements UseCaseInterface
{
private PDOStatement $query; #property.onlyRead
private static int $o; #property.onlyWritten
private $a; #missingType.property #property.unused
private int $b; #property.onlyWritten
private readonly string $adefdedefde; #property.uninitializedReadonly #property.onlyRead
public function __construct(PDO $db) #constructor.missingParentCall #constructor.unusedParameter
{
dump($this->adefdedefde); #property.uninitializedReadonly
$this->b = 1;
self::$o = '1'; #assign.propertyType
}
private function bb($a): array #missingType.parameter #method.unused #missingType.iterableValue
{
self::$o = 1;
$this->execute(1); #argument.type
return $a;
}
private function execute(array $a) #method.visibility #missingType.iterableValue #missingType.return
{
$this->b = '1'; #assign.propertyType
return $a;
}
}