Skip to content

Commit 76326e2

Browse files
committed
add DocBlock to ShortSyntaxArray
1 parent 3d3a1b2 commit 76326e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Helper/ShortSyntaxArray.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44

55
class ShortSyntaxArray
66
{
7+
/**
8+
* Parses an array and returns a string representation of this array with short syntax []
9+
*
10+
* @param array $expression
11+
* @param bool $removeNumericIndex
12+
* @param int $indent
13+
* @return string
14+
*/
715
public static function parse(array $expression, $removeNumericIndex = true, $indent = 4): string
816
{
917
$object = json_decode(str_replace(['(', ')'], ['&#40', '&#41'], json_encode($expression)), true);

0 commit comments

Comments
 (0)