Skip to content

Commit

Permalink
Unit test and changelog for: Squiz ObjectInstantiationSniff now allow…
Browse files Browse the repository at this point in the history
…s objects to be returned without assinging them to a variable
  • Loading branch information
gsherwood committed Mar 29, 2012
1 parent 4aa0de6 commit 85a118e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -8,4 +8,6 @@ $objects = array('one' => new MyClass());
$object->myFunction(new MyClass());

throw new MyException($msg);

function foo() { return new MyClass(); }
?>
1 change: 1 addition & 0 deletions package.xml
Expand Up @@ -34,6 +34,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Standards designed to be installed in the PHPCS Standards dir will now work outside this dir as well
-- In particular, allows the Drupal CS to work without needing to symlink it into the PHPCS install
-- Thanks to Peter Philipp for the patch
- Squiz ObjectInstantiationSniff now allows objects to be returned without assinging them to a variable
- Fixed an issue in AbstractPatternSniff where comments were not being ignored in some cases
- Fixed an issue in Zend ClosingTagSniff where the closing tag was not always being detected correctly
-- Thanks to Jonathan Robson for the patch
Expand Down

0 comments on commit 85a118e

Please sign in to comment.