fix: Phan Plugin for PHP 5.6
This commit is contained in:
parent
8f8c1e00af
commit
8ace897b8c
|
@ -140,9 +140,9 @@ class Phan extends Plugin
|
||||||
'phan',
|
'phan',
|
||||||
$data['check_name']."\n\n".$data['description'],
|
$data['check_name']."\n\n".$data['description'],
|
||||||
$this->severity($data['severity']),
|
$this->severity($data['severity']),
|
||||||
$data['location']['path'] ?? '??',
|
isset($data['location']['path']) ? $data['location']['path'] : '??',
|
||||||
$data['location']['lines']['begin'] ?? 0,
|
isset($data['location']['lines']['begin']) ? $data['location']['lines']['begin'] : '??',
|
||||||
$data['location']['lines']['end'] ?? 0
|
isset($data['location']['lines']['end']) ? $data['location']['lines']['end'] : '??'
|
||||||
);
|
);
|
||||||
|
|
||||||
$warnings++;
|
$warnings++;
|
||||||
|
|
Loading…
Reference in a new issue