2017-10-24 17:25:02 -04:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/php/phan.vim
|
|
|
|
|
2017-11-15 12:21:17 -05:00
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2017-10-24 17:25:02 -04: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',
|
|
|
|
\ },
|
|
|
|
\ {
|
|
|
|
\ 'lnum': 66,
|
|
|
|
\ 'type': 'W',
|
|
|
|
\ 'text': 'Call to method string from undeclared class \Respect\Validation\Validator',
|
|
|
|
\ },
|
|
|
|
\ ],
|
|
|
|
\ 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",
|
|
|
|
\ ])
|