Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Merge one or more arrays
<?php array_merge(array ...$arrays): array
<?php     {

        $defaultOptions = $this->getDefaultOptions();



        $this->options = array_merge($defaultOptions, $options);

    }



    public function setOption(string $name, string $value): self
<?php     public function merge(array $options): self

    {

        $this->options = array_merge($this->options, $options);



        return $this;

    }
<?php         }



        foreach ($middleware as $singleMiddleware) {

            $this->middleware = array_merge($this->middleware, $middleware);

        }



        return $this;
<?php             ->flatten()

            ->toArray();



        return array_merge($solutions, $providedSolutions);

    }



    public function getSolutionForClass(string $solutionClass): ?Solution