Declare UTF-8 encoding in funtions.php

This prevents breakage with --enable-zend-multibyte and customly configured
encoding.
<?php

declare(encoding='UTF-8');

namespace React\Curry;

use React\Curry\Placeholder;

function bind(/*$fn, $args...*/)
{
    $args = func_get_args();
    $fn = array_shift($args);

    return function () use ($fn, $args) {
        return call_user_func_array($fn, mergeParameters($args, func_get_args()));
    };
}

function …()
{
    return Placeholder::create();
}

function placeholder()
{
    return …();
}

/** @internal */
function mergeParameters(array $left, array $right)
{
    foreach ($left as $position => &$param) {
        if ($param instanceof Placeholder) {
            $param = $param->resolve($right, $position);
        }
    }

    return array_merge($left, $right);
}

<?php

namespace React\Curry;

use React\Curry\Placeholder;

function bind(/*$fn, $args...*/)
{
    $args = func_get_args();
    $fn = array_shift($args);

    return function () use ($fn, $args) {
        return call_user_func_array($fn, mergeParameters($args, func_get_args()));
    };
}

function …()
{
    return Placeholder::create();
}

function placeholder()
{
    return …();
}

/** @internal */
function mergeParameters(array $left, array $right)
{
    foreach ($left as $position => &$param) {
        if ($param instanceof Placeholder) {
            $param = $param->resolve($right, $position);
        }
    }

    return array_merge($left, $right);
}
