@@ -560,7 +560,7 @@ discard block |
||
560 | 560 | * Returns descendants nodes as tree with self node in the root. |
561 | 561 | * |
562 | 562 | * @param int $depth = null |
563 | - * @return static |
|
563 | + * @return ActiveRecord |
|
564 | 564 | */ |
565 | 565 | public function getTree($depth = null) |
566 | 566 | { |
@@ -841,7 +841,7 @@ discard block |
||
841 | 841 | } |
842 | 842 | |
843 | 843 | /** |
844 | - * @param array $items |
|
844 | + * @param string[] $items |
|
845 | 845 | * @return string |
846 | 846 | */ |
847 | 847 | protected function concatExpression($items) |
@@ -852,6 +852,11 @@ discard block |
||
852 | 852 | return 'CONCAT(' . implode(',', $items) . ')'; |
853 | 853 | } |
854 | 854 | |
855 | + /** |
|
856 | + * @param string $string |
|
857 | + * @param string $from |
|
858 | + * @param string $length |
|
859 | + */ |
|
855 | 860 | protected function substringExpression($string, $from, $length) |
856 | 861 | { |
857 | 862 | if ($this->owner->getDb()->driverName === 'sqlite') { |