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',
|
||||
$data['check_name']."\n\n".$data['description'],
|
||||
$this->severity($data['severity']),
|
||||
$data['location']['path'] ?? '??',
|
||||
$data['location']['lines']['begin'] ?? 0,
|
||||
$data['location']['lines']['end'] ?? 0
|
||||
isset($data['location']['path']) ? $data['location']['path'] : '??',
|
||||
isset($data['location']['lines']['begin']) ? $data['location']['lines']['begin'] : '??',
|
||||
isset($data['location']['lines']['end']) ? $data['location']['lines']['end'] : '??'
|
||||
);
|
||||
|
||||
$warnings++;
|
||||
|
|
Loading…
Reference in a new issue