These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace WyriHaximus\Travis; |
||
4 | |||
5 | class BuildMatrix |
||
6 | { |
||
7 | use ClientAwareTrait; |
||
8 | |||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $repository; |
||
13 | |||
14 | public function __construct(Client $client) |
||
15 | { |
||
16 | $this->setClient($client); |
||
17 | $this->repository = $repository; |
||
0 ignored issues
–
show
|
|||
18 | } |
||
19 | |||
20 | public function matrix() |
||
21 | { |
||
22 | |||
23 | } |
||
24 | } |
||
25 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.