Skip to content

Commit ec36aef

Browse files
committed
AC-676: Create phpcs static check for ObsoleteConnectionTest
1 parent 0bea0bc commit ec36aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Legacy/ObsoleteConnectionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function validateObsoleteMethod(File $phpcsFile, int $stackPtr)
6161
foreach ($this->obsoleteMethods as $method) {
6262
if ($tokens[$stringPos]['content'] === $method) {
6363
$phpcsFile->addWarning(
64-
sprintf("Contains obsolete method: %s.", $method),
64+
sprintf("Contains obsolete method: %s. Please use getConnection method instead.", $method),
6565
$stackPtr,
6666
self::ERROR_CODE_METHOD
6767
);

0 commit comments

Comments
 (0)