protected function validateVersion()
    {
        $data = $this->configuration;

        $matches = [];
        if (!isset($data['version']) or ! preg_match('/^([0-9]).*$/i', $data['version'], $matches)) {
            array_push($this->messages, ['error', trans('Unable to read php version. It is recommended to contact with your provider.')]);
            return $this;
        }
        if (!isset($matches[1])) {
            array_push($this->messages, ['error', trans('Unable to read php primary version. It is recommended to contact with your provider.')]);
        }
        if ((int) $matches[1] < 7) {
            array_push($this->messages, ['warning', sprintf('Current PHP Version (%s) does not match the minimum system requirements. It is recommended to use PHP Version 7.', $data['version'])]);
        }

        if (!preg_match('/^([0-9]).([0-9]).([0-9])$/', $data['version'])) {
            array_push($this->messages, ['warning', sprintf('Current PHP Version (%s) is not stable. Use only stable releases.', $data['version'])]);
        }
        return $this;
    }