Skip to content

Commit

Permalink
Mysql: Don't cast option ssl_do_not_verify_server_cert to bool
Browse files Browse the repository at this point in the history
fixes #37
  • Loading branch information
nilmerg committed Jul 19, 2021
1 parent e3370ed commit 203b735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getOptions(Config $config)
defined('PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT')
&& isset($config->ssl_do_not_verify_server_cert)
) {
$options[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = (bool) $config->ssl_do_not_verify_server_cert;
$options[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = false;
}
}

Expand Down

0 comments on commit 203b735

Please sign in to comment.