<?php

namespace ChainableTest\Fixtures;

use Chainable\ChainableInterface;
use Chainable\Result\ChainResult;
use Chainable\Result\ChainResultInterface;

abstract class AbstractResponse implements ChainableInterface
{
    abstract public function getValue();

    /**
     * @param mixed $data
     *
     * @return ChainResultInterface
     */
    public function process(... $data)
    {
        return new ChainResult($this->getValue(), reset(reset($data)) === $this->getValue());
    }
}

<?php

namespace ChainableTest\Fixtures;

use Chainable\ChainableInterface;
use Chainable\Result\ChainResult;
use Chainable\Result\ChainResultInterface;

abstract class AbstractResponse implements ChainableInterface
{
    abstract public function getValue();

    /**
     * @param mixed $data
     *
     * @return ChainResultInterface
     */
    public function process(... $data)
    {
        $value = reset($data);

        return new ChainResult($this->getValue(), reset($value) === $this->getValue());
    }
}

Fix dumb error in travis php version
Fix dumb error in travis php version
