Skip to content

Commit

Permalink
The PSR2 standard no longer throws errors for additional spacing afte…
Browse files Browse the repository at this point in the history
…r a type hint
  • Loading branch information
gsherwood committed Sep 18, 2013
1 parent d1709bb commit 1a9b6d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CodeSniffer/Standards/PSR2/ruleset.xml
Expand Up @@ -115,6 +115,9 @@
<property name="equalsSpacing" value="1"/>
</properties>
</rule>
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint">
<severity>0</severity>
</rule>

<!-- Method arguments with default values MUST go at the end of the argument list. -->
<rule ref="PEAR.Functions.ValidDefaultValue"/>
Expand Down
1 change: 1 addition & 0 deletions package.xml
Expand Up @@ -51,6 +51,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Squiz ClassFileNameSniff no longer throws errors when checking STDIN
- Squiz CSS sniffs no longer generate errors for IE filters
- Squiz LogicalOperatorSpacingSniff now ignores whitespace at the end of a line
- The PSR2 standard no longer throws errors for additional spacing after a type hint
- Fixed bug #20026 : Check for multi-line arrays that should be single-line is slightly wrong
-- Adds new error message for single-line arrays that end with a comma
- Fixed bug #20029 : ForbiddenFunction sniff incorrectly recognizes methods in USE clauses
Expand Down

0 comments on commit 1a9b6d8

Please sign in to comment.