Completed
Push — m/request-timeout ( 4f1cd6 )
by
unknown
05:33
created
src/Crate/PDO/PDO.php 1 patch
Doc Comments   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
      * {@inheritDoc}
81 81
      *
82 82
      * @param string     $dsn      The HTTP endpoint to call
83
-     * @param null       $username Unused
84
-     * @param null       $passwd   Unused
83
+     * @param null|string       $username Unused
84
+     * @param null|string       $passwd   Unused
85 85
      * @param null|array $options  Attributes to set on the PDO
86 86
      */
87 87
     public function __construct($dsn, $username, $passwd, $options)
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @param string $dsn The DSN string
141 141
      *
142
-     * @return array An array of ['host:post,host:port,...', 'schema']
142
+     * @return string[] An array of ['host:post,host:port,...', 'schema']
143 143
      */
144 144
     private static function parseDSN($dsn)
145 145
     {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * Extract host:port pairs out of the DSN parts
157 157
      *
158
-     * @param array $dsnParts The parts of the parsed DSN string
158
+     * @param string[] $dsnParts The parts of the parsed DSN string
159 159
      *
160 160
      * @return array An array of host:port strings
161 161
      */
@@ -213,6 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
     /**
215 215
      * {@inheritDoc}
216
+     * @param string $statement
216 217
      */
217 218
     public function exec($statement)
218 219
     {
@@ -224,6 +225,7 @@  discard block
 block discarded – undo
224 225
 
225 226
     /**
226 227
      * {@inheritDoc}
228
+     * @param string $statement
227 229
      */
228 230
     public function query($statement)
229 231
     {
@@ -352,6 +354,7 @@  discard block
 block discarded – undo
352 354
 
353 355
     /**
354 356
      * {@inheritDoc}
357
+     * @param string $string
355 358
      */
356 359
     public function quote($string, $parameter_type = PDO::PARAM_STR)
357 360
     {
@@ -384,6 +387,9 @@  discard block
 block discarded – undo
384 387
         return array_merge(parent::getAvailableDrivers(), [static::DRIVER_NAME]);
385 388
     }
386 389
 
390
+    /**
391
+     * @return string
392
+     */
387 393
     public function getServerVersion()
388 394
     {
389 395
         $result = $this->client->getServerVersion();
Please login to merge, or discard this patch.