Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #104: Don't fail on short array syntax initializers
- Loading branch information
1 parent
e8f4d0b
commit d731fa6
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/test/resources/files/bugs/00000104/testParameterDefaultValue.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
class testParameterDefaultValue | ||
{ | ||
protected function foo($bar = [ 'a' => array( 'b', [ 23, 42 => 'baz' ] ) ]) | ||
{ | ||
} | ||
} |