2017-10-24 21:25:02 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/php/phan.vim
|
|
|
|
|
2017-11-15 17:21:17 +00:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2017-10-24 21:25:02 +00:00
|
|
|
Execute(The php static analyzer handler should parse errors from phan):
|
|
|
|
AssertEqual
|
|
|
|
\ [
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 25,
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ 'text': 'Return type of getValidator is undeclared type \Respect\Validation\Validator',
|
2021-01-08 14:24:06 +00:00
|
|
|
\ 'filename': 'example.php',
|
2017-10-24 21:25:02 +00:00
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 66,
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ 'text': 'Call to method string from undeclared class \Respect\Validation\Validator',
|
2021-01-08 14:24:06 +00:00
|
|
|
\ 'filename': 'example.php',
|
2017-10-24 21:25:02 +00:00
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ ale_linters#php#phan#Handle(347, [
|
|
|
|
\ "example.php:25 PhanUndeclaredTypeReturnType Return type of getValidator is undeclared type \\Respect\\Validation\\Validator",
|
|
|
|
\ "example.php:66 PhanUndeclaredClassMethod Call to method string from undeclared class \\Respect\\Validation\\Validator",
|
|
|
|
\ ])
|