Permalink
Browse files

Fixed bug #20100 : incorrect Function mysql() has been deprecated report

  • Loading branch information...
1 parent df764a1 commit f8fbe3b57b610d8a395da5fd6a949e9194b5bc08 @gsherwood gsherwood committed Oct 23, 2013
@@ -111,6 +111,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
T_PROTECTED,
T_AS,
T_INSTEADOF,
+ T_NS_SEPARATOR,
);
$prevToken = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
@@ -45,4 +45,6 @@ class RightSideVisTest {
}
}
+namespace Something\sizeof;
+
?>

2 comments on commit f8fbe3b

@bajb
bajb commented on f8fbe3b Nov 30, 2013

This is still a problem when a class name is MySQL

return new MySQL();
@gsherwood
Member

I added another fix here: 518a927

Please sign in to comment.