Skip to content

Commit

Permalink
Fixed bug #20100 : incorrect Function mysql() has been deprecated report
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Oct 23, 2013
1 parent df764a1 commit f8fbe3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -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);
Expand Down
Expand Up @@ -45,4 +45,6 @@ class RightSideVisTest {
}
}

namespace Something\sizeof;

?>

2 comments on commit f8fbe3b

@bajb
Copy link

@bajb bajb commented on f8fbe3b Nov 30, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still a problem when a class name is MySQL

return new MySQL();

@gsherwood
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added another fix here: 518a927

Please sign in to comment.