mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
Fix types (#19332)
* Migration::upsert() returns void * Unneeded `@property` tags * Add missing `null` param/return types * Null types for db\Query + db\ActiveQuery * Fixed testSelect
This commit is contained in:
@ -38,7 +38,7 @@ class BaseStringHelper
|
||||
*
|
||||
* @param string $string the input string. Must be one character or longer.
|
||||
* @param int $start the starting position
|
||||
* @param int $length the desired portion length. If not specified or `null`, there will be
|
||||
* @param int|null $length the desired portion length. If not specified or `null`, there will be
|
||||
* no limit on length i.e. the output will be until the end of the string.
|
||||
* @return string the extracted part of string, or FALSE on failure or an empty string.
|
||||
* @see https://www.php.net/manual/en/function.substr.php
|
||||
@ -111,7 +111,7 @@ class BaseStringHelper
|
||||
* @param string $string The string to truncate.
|
||||
* @param int $length How many characters from original string to include into truncated string.
|
||||
* @param string $suffix String to append to the end of truncated string.
|
||||
* @param string $encoding The charset to use, defaults to charset currently used by application.
|
||||
* @param string|null $encoding The charset to use, defaults to charset currently used by application.
|
||||
* @param bool $asHtml Whether to treat the string being truncated as HTML and preserve proper HTML tags.
|
||||
* This parameter is available since version 2.0.1.
|
||||
* @return string the truncated string.
|
||||
|
Reference in New Issue
Block a user