src/ArgumentFactory.php
public function argumentsForCallback(callable $callback): array
    {
        $definition = new ReflectionFunction($callback);
        $arguments = [];

        foreach ($definition->getParameters() as $parameter) {
            if ($type = $parameter->getType()) {
                $arguments[] = Phony::emptyValue($type);
            } else {
                $arguments[] = null;
            }
        }

        return $arguments;
    }
public function argumentsForCallback(callable $callback): array
    {
        $definition = new ReflectionFunction($callback);
        $arguments = [];

        foreach ($definition->getParameters() as $parameter) {
            if ($type = $parameter->getType()) {
                $arguments[] = Phony::emptyValue($type);
            } else {
                $arguments[] = null;
            }
        }

        return $arguments;
    }
public function argumentsForCallback ( callable $ callback ) : array { $ definition = new ReflectionFunction ( $ callback ) ; $ arguments = [ ] ; foreach ( $ definition -> getParameters ( ) as $ parameter ) { if ( $ type = $ parameter -> getType ( ) ) { $ arguments [ ] = Phony :: emptyValue ( $ type ) ; } else { $ arguments [ ] = null ; } } return $ arguments ; }
Returns an argument list of test doubles for the supplied callback.

@param callable $callback The callback.

@return array The arguments.
Returns an argument list of test doubles for the supplied callback .