Skip to content

Commit 0bea0bc

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Magento2/Sniffs/Legacy/ObsoleteConnectionSniff.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ObsoleteConnectionSniff implements Sniff
1515
private const ERROR_CODE_METHOD = 'FoundObsoleteMethod';
1616

1717
/**
18-
* @var string[]
18+
* @var string[]
1919
*/
2020
private $obsoleteMethods = [
2121
'_getReadConnection',
@@ -49,11 +49,11 @@ public function process(File $phpcsFile, $stackPtr)
4949

5050
/**
5151
* Check if obsolete methods are used
52-
*
53-
* @param $phpcsFile
54-
* @param $stackPtr
52+
*
53+
* @param File $phpcsFile
54+
* @param int $stackPtr
5555
*/
56-
private function validateObsoleteMethod($phpcsFile, $stackPtr)
56+
private function validateObsoleteMethod(File $phpcsFile, int $stackPtr)
5757
{
5858
$tokens = $phpcsFile->getTokens();
5959
$stringPos = $phpcsFile->findNext(T_STRING, $stackPtr + 1);

0 commit comments

Comments
 (0)