@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Get the error code from the last operation |
54 | 54 | * @link http://php.net/manual/en/messageformatter.geterrorcode.php |
55 | - * @return string Code of the last error. |
|
55 | + * @return integer Code of the last error. |
|
56 | 56 | */ |
57 | 57 | public function getErrorCode() |
58 | 58 | { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * Returns the cache key for the specified table name. |
147 | 147 | * @param string $name the table name |
148 | - * @return mixed the cache key |
|
148 | + * @return string[] the cache key |
|
149 | 149 | */ |
150 | 150 | protected function getCacheKey($name) |
151 | 151 | { |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | * Executes the INSERT command, returning primary key values. |
428 | 428 | * @param string $table the table that new rows will be inserted into. |
429 | 429 | * @param array $columns the column data (name => value) to be inserted into the table. |
430 | - * @return array|false primary key values or false if the command fails |
|
430 | + * @return string primary key values or false if the command fails |
|
431 | 431 | * @since 2.0.4 |
432 | 432 | */ |
433 | 433 | public function insert($table, $columns) |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * @param UrlManager $manager the URL manager |
335 | 335 | * @param string $route the route. It should not have slashes at the beginning or the end. |
336 | 336 | * @param array $params the parameters |
337 | - * @return string|bool the created URL, or `false` if this rule cannot be used for creating this URL. |
|
337 | + * @return false|string the created URL, or `false` if this rule cannot be used for creating this URL. |
|
338 | 338 | */ |
339 | 339 | public function createUrl($manager, $route, $params) |
340 | 340 | { |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | * When found - replaces this placeholder key with a appropriate name of matching parameter. |
426 | 426 | * Used in [[parseRequest()]], [[createUrl()]]. |
427 | 427 | * |
428 | - * @param array $matches result of `preg_match()` call |
|
428 | + * @param string[] $matches result of `preg_match()` call |
|
429 | 429 | * @return array input array with replaced placeholder keys |
430 | 430 | * @see placeholders |
431 | 431 | * @since 2.0.7 |