@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | /** |
345 | 345 | * @param bool $asArray = false |
346 | - * @return null|string|array |
|
346 | + * @return string |
|
347 | 347 | */ |
348 | 348 | public function getParentPath($asArray = false) |
349 | 349 | { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * |
356 | 356 | * @param int $depth = null |
357 | 357 | * @param string|array $with = null |
358 | - * @return static |
|
358 | + * @return ActiveRecord |
|
359 | 359 | */ |
360 | 360 | public function populateTree($depth = null, $with = null) |
361 | 361 | { |
@@ -910,7 +910,7 @@ discard block |
||
910 | 910 | } |
911 | 911 | |
912 | 912 | /** |
913 | - * @param array $items |
|
913 | + * @param string[] $items |
|
914 | 914 | * @return string |
915 | 915 | */ |
916 | 916 | protected function concatExpression($items) |
@@ -921,6 +921,9 @@ discard block |
||
921 | 921 | return 'CONCAT(' . implode(',', $items) . ')'; |
922 | 922 | } |
923 | 923 | |
924 | + /** |
|
925 | + * @param string $from |
|
926 | + */ |
|
924 | 927 | protected function substringExpression($string, $from, $length) |
925 | 928 | { |
926 | 929 | if ($this->owner->getDb()->driverName === 'sqlite') { |