Skip to content

Commit f8fbe3b

Browse files
committed
Fixed bug #20100 : incorrect Function mysql() has been deprecated report
1 parent df764a1 commit f8fbe3b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CodeSniffer/Standards/Generic/Sniffs/PHP/ForbiddenFunctionsSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
111111
T_PROTECTED,
112112
T_AS,
113113
T_INSTEADOF,
114+
T_NS_SEPARATOR,
114115
);
115116

116117
$prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);

CodeSniffer/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ class RightSideVisTest {
4545
}
4646
}
4747

48+
namespace Something\sizeof;
49+
4850
?>

0 commit comments

Comments
 (0)