Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Forgot to add this unit test file for a previous commit

  • Loading branch information...
commit 7288953c8ef6d1edbdb2407acd39b5c735488648 1 parent 391c36b
@gsherwood gsherwood authored
View
15 CodeSniffer/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.3.inc
@@ -0,0 +1,15 @@
+<?php
+namespace bug;
+
+use someNS\A;
+use someNS\B;
+class Bug
+{
+ public function __construct()
+ {
+ $b = 1;
+ $a = function () use ($b) {
+ echo $b;
+ };
+ }
+}
View
11 package.xml
@@ -42,6 +42,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Thanks to Thomas Peterson for the patch
- Squiz FunctionDeclarationArgumentSpacingSniff now works correctly for equalsSpacing values greater than 0
-- Thanks to Klaus Purer for the patch
+ - Squiz SuperfluousWhitespaceSniff no longer throws errors for CSS files with no newline at the end
+ - Squiz SuperfluousWhitespaceSniff now allows a single newline at the end of JS and CSS files
- Fixed bug #19755 : Token of T_CLASS type has no scope_opener and scope_closer keys
- Fixed bug #19759 : Squiz.PHP.NonExecutableCode fails for return function()...
- Fixed bug #19763 : Use statements for traits not recognised correctly for PSR2 code style
@@ -1111,6 +1113,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
</file>
<file baseinstalldir="PHP" name="UseDeclarationUnitTest.1.inc" role="test" />
<file baseinstalldir="PHP" name="UseDeclarationUnitTest.2.inc" role="test" />
+ <file baseinstalldir="PHP" name="UseDeclarationUnitTest.3.inc" role="test" />
<file baseinstalldir="PHP" name="UseDeclarationUnitTest.php" role="test">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
@@ -1895,9 +1898,13 @@ http://pear.php.net/dtd/package-2.0.xsd">
<file baseinstalldir="PHP" name="SemicolonSpacingUnitTest.php" role="test">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
- <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.css" role="test" />
+ <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.1.css" role="test" />
+ <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.1.js" role="test" />
+ <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.2.css" role="test" />
+ <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.2.js" role="test" />
+ <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.3.css" role="test" />
+ <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.3.js" role="test" />
<file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.inc" role="test" />
- <file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.js" role="test" />
<file baseinstalldir="PHP" name="SuperfluousWhitespaceUnitTest.php" role="test">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
Please sign in to comment.
Something went wrong with that request. Please try again.