Skip to content

Commit 5adc614

Browse files
committed
refactor: docblock, make arg optional
1 parent 8f3b918 commit 5adc614

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/functions.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
\class_alias('Ahc\Underscore\Underscore', 'Ahc\Underscore');
44

55
if (!\function_exists('underscore')) {
6-
function underscore($data)
6+
/**
7+
* Underscore instantiation helper.
8+
*
9+
* @param mixed $data
10+
*
11+
* @return Ahc\Underscore\Underscore
12+
*/
13+
function underscore($data = [])
714
{
815
return new Ahc\Underscore\Underscore($data);
916
}

0 commit comments

Comments
 (0)