@@ -143,8 +143,7 @@ public function connect(): static
143143 $ this ->resource ->ssl_set ($ clientKey , $ clientCert , $ caCert , $ caPath , $ cipher );
144144 //MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT is not valid option, needs to be set as flag
145145 if (
146- isset ($ p ['driver_options ' ])
147- && isset ($ p ['driver_options ' ][MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT ])
146+ isset ($ p ['driver_options ' ][MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT ])
148147 ) {
149148 $ flags |= MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT ;
150149 }
@@ -154,7 +153,7 @@ public function connect(): static
154153 $ flags === null
155154 ? $ this ->resource ->real_connect ($ hostname , $ username , $ password , $ database , $ port , $ socket )
156155 : $ this ->resource ->real_connect ($ hostname , $ username , $ password , $ database , $ port , $ socket , $ flags );
157- } catch (GenericException $ e ) {
156+ } catch (GenericException ) {
158157 throw new Exception \RuntimeException (
159158 'Connection error ' ,
160159 $ this ->resource ->connect_errno ,
@@ -254,15 +253,11 @@ public function execute($sql): ResultInterface
254253 $ this ->connect ();
255254 }
256255
257- if ($ this ->profiler ) {
258- $ this ->profiler ->profilerStart ($ sql );
259- }
256+ $ this ->profiler ?->profilerStart($ sql );
260257
261258 $ resultResource = $ this ->resource ->query ($ sql );
262259
263- if ($ this ->profiler ) {
264- $ this ->profiler ->profilerFinish ($ sql );
265- }
260+ $ this ->profiler ?->profilerFinish($ sql );
266261
267262 // if the returnValue is something other than a mysqli_result, bypass wrapping it
268263 if ($ resultResource === false ) {
0 commit comments