@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | } |
| 800 | 800 | |
| 801 | 801 | /** |
| 802 | - * @param array $items |
|
| 802 | + * @param string[] $items |
|
| 803 | 803 | * @return string |
| 804 | 804 | */ |
| 805 | 805 | protected function concatExpression($items) |
@@ -810,6 +810,11 @@ discard block |
||
| 810 | 810 | return 'CONCAT(' . implode(',', $items) . ')'; |
| 811 | 811 | } |
| 812 | 812 | |
| 813 | + /** |
|
| 814 | + * @param string $string |
|
| 815 | + * @param string $from |
|
| 816 | + * @param string $length |
|
| 817 | + */ |
|
| 813 | 818 | protected function substringExpression($string, $from, $length) |
| 814 | 819 | { |
| 815 | 820 | if ($this->owner->getDb()->driverName === 'sqlite') { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use paulzi\materializedpath\tests\models\AttributeModeNode; |
| 12 | 12 | use paulzi\materializedpath\tests\models\MultipleTreeNode; |
| 13 | 13 | use paulzi\materializedpath\tests\models\Node; |
| 14 | -use Yii; |
|
| 15 | 14 | |
| 16 | 15 | /** |
| 17 | 16 | * @author PaulZi <[email protected]> |