We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bea0bc commit ec36aefCopy full SHA for ec36aef
Magento2/Sniffs/Legacy/ObsoleteConnectionSniff.php
@@ -61,7 +61,7 @@ private function validateObsoleteMethod(File $phpcsFile, int $stackPtr)
61
foreach ($this->obsoleteMethods as $method) {
62
if ($tokens[$stringPos]['content'] === $method) {
63
$phpcsFile->addWarning(
64
- sprintf("Contains obsolete method: %s.", $method),
+ sprintf("Contains obsolete method: %s. Please use getConnection method instead.", $method),
65
$stackPtr,
66
self::ERROR_CODE_METHOD
67
);
0 commit comments