Skip to content

Commit a02fb12

Browse files
authored
[6.x] Fix Parameters make method (#14418)
1 parent d86aa73 commit a02fb12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Tags/Parameters.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
class Parameters extends ArrayAccessor
1010
{
11-
public static function make($items = [], $context = null)
11+
public static function make($items = [], ...$args)
1212
{
13+
$context = $args[0] ?? null;
14+
1315
if (! $context) {
1416
throw new \InvalidArgumentException('A Context object is expected.');
1517
}

0 commit comments

Comments
 (0)