Skip to content

Commit

Permalink
Generic ForbiddenFunctionsSniff now ignores object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Dec 1, 2013
1 parent 0622b32 commit 518a927
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
T_PRIVATE,
T_PROTECTED,
T_AS,
T_NEW,
T_INSTEADOF,
T_NS_SEPARATOR,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ class RightSideVisTest {
}

namespace Something\sizeof;
$var = new Sizeof();

?>
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
</stability>
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
<notes>
- Generic ForbiddenFunctionsSniff now ignores object creation
-- This is a further fix for bug #20100 : incorrect Function mysql() has been deprecated report
- Fixed bug #20136 : Squiz_Sniffs_WhiteSpace_ScopeKeywordSpacingSniff and Traits
</notes>
<contents>
Expand Down

0 comments on commit 518a927

Please sign in to comment.