SachinAgarwal1337 / google-places-api

This is a PHP wrapper for Google Places API Web Service. And is Laravel Framework friendly.
MIT License
182 stars 44 forks source link

PHP inbuilt server: GuzzleHttp \ Exception \ RequestException cURL error 60: SSL certificate problem #40

Closed abiodunjames closed 6 years ago

abiodunjames commented 6 years ago

You get SSL certificate error even when you set $verifySSL = false at the constructor. This is because it was never set, so it always defaults to true as shown in this snippet irrespective of what you set it to be

/**
     * PlacesApi constructor.
     *
     * @param null $key
     * @param bool $verifySSL
     */
    public function __construct($key = null, $verifySSL = true)
    {
        $this->key = $key;

        $this->client = new Client([
            'base_uri' => self::BASE_URL,
        ]);
    }

I'll be making a pull request to address this.

SachinAgarwal1337 commented 6 years ago

fixed: https://github.com/SachinAgarwal1337/google-places-api/commit/d084ff7c246987bd9fc2dee909b4fb54d58ff6c5