env and vendor added temporary

This commit is contained in:
2025-04-09 16:39:53 +02:00
parent 35e90c283e
commit 43b1cb2202
10304 changed files with 1205060 additions and 254 deletions
@@ -0,0 +1,21 @@
<?php
namespace Spatie\Backtrace\Arguments\ReducedArgument;
use Exception;
class VariadicReducedArgument extends ReducedArgument
{
public function __construct(array $value)
{
foreach ($value as $key => $item) {
if (! $item instanceof ReducedArgument) {
throw new Exception('VariadicReducedArgument must be an array of ReducedArgument');
}
$value[$key] = $item->value;
}
parent::__construct($value, 'array');
}
}