BUGFIX: Allow deprecations to work in vim too.
* Remove line breaks from output, as syntastic will not parse them. * It's up to the report to format the messages, not the Sniff. Relates: #33
This commit is contained in:
parent
65773c88b5
commit
0ee10ea61f
2 changed files with 4 additions and 6 deletions
|
@ -81,8 +81,8 @@ class Typo3Update_Sniffs_Deprecated_AjaxRegistrationSniff implements PhpCsSniff
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpcsFile->addWarning(
|
$phpcsFile->addWarning(
|
||||||
"Defining AJAX using %s is no longer supported with a single String like %s.\n"
|
'Defining AJAX using %s is no longer supported with a single String like %s.'
|
||||||
. "Since TYPO3 7.6, use PSR-7-based Routing for Backend AJAX Requests.\n"
|
. ' Since TYPO3 7.6, use PSR-7-based Routing for Backend AJAX Requests.'
|
||||||
. ' See: %s',
|
. ' See: %s',
|
||||||
$tokenToCheck,
|
$tokenToCheck,
|
||||||
'',
|
'',
|
||||||
|
|
|
@ -101,9 +101,7 @@ class Typo3Update_Sniffs_Deprecated_GenericFunctionCallSniff implements PhpCsSni
|
||||||
$functionCall = $token['content'];
|
$functionCall = $token['content'];
|
||||||
|
|
||||||
$phpcsFile->addWarning(
|
$phpcsFile->addWarning(
|
||||||
"Legacy function calls are not allowed; found %s.\n"
|
'Legacy function calls are not allowed; found %s. %s. See: %s',
|
||||||
. "%s.\n"
|
|
||||||
. "See: %s",
|
|
||||||
$tokenPosition,
|
$tokenPosition,
|
||||||
$functionCall,
|
$functionCall,
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue