@@ -104,7 +104,7 @@ |
||
104 | 104 | /** |
105 | 105 | * @param string $sql |
106 | 106 | * @param iterable $data |
107 | - * @param $callback |
|
107 | + * @param callable $callback |
|
108 | 108 | * |
109 | 109 | * @return bool |
110 | 110 | */ |
@@ -86,7 +86,7 @@ |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @param $result |
|
89 | + * @param resource $result |
|
90 | 90 | * @param string|null $index |
91 | 91 | * @param bool $assoc |
92 | 92 | * |
@@ -24,6 +24,7 @@ |
||
24 | 24 | * @param \chillerlan\Database\Drivers\DriverInterface $db |
25 | 25 | * @param \chillerlan\Database\Dialects\Dialect $dialect |
26 | 26 | * @param \Psr\Log\LoggerInterface|null $logger |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function __construct(DriverInterface $db, Dialect $dialect, LoggerInterface $logger = null); |
29 | 30 |
@@ -22,6 +22,7 @@ |
||
22 | 22 | * @param iterable|null $data |
23 | 23 | * @param string|null $sourceEncoding |
24 | 24 | * @param string $destEncoding |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function __construct(iterable $data = null, string $sourceEncoding = null, string $destEncoding = null); |
27 | 28 |
@@ -119,7 +119,7 @@ |
||
119 | 119 | |
120 | 120 | // @todo: whitelist types? |
121 | 121 | $nolengthtypes = ['DATE', 'TINYBLOB', 'TINYTEXT', 'BLOB', 'TEXT', 'MEDIUMBLOB', |
122 | - 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
122 | + 'MEDIUMTEXT', 'LONGBLOB', 'LONGTEXT', 'SERIAL', 'BOOLEAN', 'UUID']; |
|
123 | 123 | |
124 | 124 | $field[] = (is_int($length) || (is_string($length) && count(explode(',', $length)) === 2)) && !in_array($type, $nolengthtypes, true) |
125 | 125 | ? $type.'('. $length . ')' |
@@ -28,6 +28,7 @@ |
||
28 | 28 | * @param \chillerlan\Traits\ContainerInterface $options |
29 | 29 | * @param \Psr\SimpleCache\CacheInterface|null $cache |
30 | 30 | * @param \Psr\Log\LoggerInterface|null $logger |
31 | + * @return void |
|
31 | 32 | */ |
32 | 33 | public function __construct(ContainerInterface $options, CacheInterface $cache = null, LoggerInterface $logger = null); |
33 | 34 |