Skip to content

Commit ca93300

Browse files
committed
Provide or operator with reference
1 parent bb5749d commit ca93300

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
function (&$base) {
2+
foreach (array_slice(func_get_args(), 1) as $value) {
3+
if (!$base) {
4+
$base = $value();
5+
}
6+
}
7+
8+
return $base;
9+
}

0 commit comments

Comments
 (0)