<?php func_num_args(): int
<?php { $args = null; $adapter = $this->getPromiseTestAdapter(function () use (&$args) { $args = func_num_args(); }); $adapter->promise()->cancel();