func_get_args

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns an array comprising a function's argument list
<?php func_get_args(): array
<?php     public function promise(): ?PromiseInterface

    {

        return ($this->callbacks['promise'])(...func_get_args());

    }



    public function resolve(): ?PromiseInterface
<?php     public function resolve(): ?PromiseInterface

    {

        return ($this->callbacks['resolve'])(...func_get_args());

    }



    public function reject(): ?PromiseInterface
<?php     public function reject(): ?PromiseInterface

    {

        return ($this->callbacks['reject'])(...func_get_args());

    }



    public function settle(): ?PromiseInterface
<?php     public function settle(): ?PromiseInterface

    {

        return ($this->callbacks['settle'])(...func_get_args());

    }

}
<?php     {

        $args = null;

        $adapter = $this->getPromiseTestAdapter(function ($resolve, $reject) use (&$args) {

            $args = func_get_args();

        });



        $adapter->promise()->cancel();