diff --git a/framework/base/DynamicModel.php b/framework/base/DynamicModel.php index 610e03d..6b2295a 100644 --- a/framework/base/DynamicModel.php +++ b/framework/base/DynamicModel.php @@ -252,7 +252,7 @@ class DynamicModel extends Model * Sets the attribute labels in a massive way. * * @see attributeLabels() - * @see $_attributeLabels + * @see _attributeLabels * @since 2.0.35 * * @param array $labels Array of attribute labels @@ -269,7 +269,7 @@ class DynamicModel extends Model * Sets a label for an attribute. * * @see attributeLabels() - * @see $_attributeLabels + * @see _attributeLabels * @since 2.0.35 * * @param string $attribute Attribute name diff --git a/framework/console/controllers/BaseMigrateController.php b/framework/console/controllers/BaseMigrateController.php index 4fbcdb2..24280c3 100644 --- a/framework/console/controllers/BaseMigrateController.php +++ b/framework/console/controllers/BaseMigrateController.php @@ -54,7 +54,7 @@ abstract class BaseMigrateController extends Controller * as the migration name contains the origin of the migration in the history, which is not the case when * using multiple migration paths. * - * @see $migrationNamespaces + * @see migrationNamespaces */ public $migrationPath = ['@app/migrations']; /** @@ -75,7 +75,7 @@ abstract class BaseMigrateController extends Controller * ``` * * @since 2.0.10 - * @see $migrationPath + * @see migrationPath */ public $migrationNamespaces = []; /** diff --git a/framework/data/Sort.php b/framework/data/Sort.php index f402af2..bbb1ce9 100644 --- a/framework/data/Sort.php +++ b/framework/data/Sort.php @@ -305,8 +305,8 @@ class Sort extends BaseObject * @param string $param the value of the [[sortParam]]. * @return array the valid sort attributes. * @since 2.0.12 - * @see $separator for the attribute name separator. - * @see $sortParam + * @see separator for the attribute name separator. + * @see sortParam */ protected function parseSortParam($param) { diff --git a/framework/db/QueryBuilder.php b/framework/db/QueryBuilder.php index c6f7487..63458c5 100644 --- a/framework/db/QueryBuilder.php +++ b/framework/db/QueryBuilder.php @@ -159,7 +159,7 @@ class QueryBuilder extends \yii\base\BaseObject * default expression builders for this query builder. See [[expressionBuilders]] docs for details. * * @return array - * @see $expressionBuilders + * @see expressionBuilders * @since 2.0.14 */ protected function defaultExpressionBuilders() diff --git a/framework/filters/AccessRule.php b/framework/filters/AccessRule.php index aece5cc..8cb4fca 100644 --- a/framework/filters/AccessRule.php +++ b/framework/filters/AccessRule.php @@ -62,8 +62,8 @@ class AccessRule extends Component * Note that it is preferred to check for permissions instead. * * If this property is not set or empty, it means this rule applies regardless of roles. - * @see $permissions - * @see $roleParams + * @see permissions + * @see roleParams */ public $roles; /** @@ -72,8 +72,8 @@ class AccessRule extends Component * * If this property is not set or empty, it means this rule applies regardless of permissions. * @since 2.0.12 - * @see $roles - * @see $roleParams + * @see roles + * @see roleParams */ public $permissions; /** @@ -106,7 +106,7 @@ class AccessRule extends Component * * A reference to the [[AccessRule]] instance will be passed to the closure as the first parameter. * - * @see $roles + * @see roles * @since 2.0.12 */ public $roleParams = []; diff --git a/framework/helpers/BaseJson.php b/framework/helpers/BaseJson.php index fea90a1..ad41de7 100644 --- a/framework/helpers/BaseJson.php +++ b/framework/helpers/BaseJson.php @@ -9,8 +9,9 @@ namespace yii\helpers; use yii\base\Arrayable; use yii\base\InvalidArgumentException; -use yii\web\JsExpression; use yii\base\Model; +use yii\web\JsExpression; +use yii\web\JsonResponseFormatter; /** * BaseJson provides concrete implementation for [[Json]]. diff --git a/framework/helpers/BaseMarkdown.php b/framework/helpers/BaseMarkdown.php index 08da9c5..9b88c72 100644 --- a/framework/helpers/BaseMarkdown.php +++ b/framework/helpers/BaseMarkdown.php @@ -45,7 +45,7 @@ class BaseMarkdown /** * @var string the markdown flavor to use when none is specified explicitly. * Defaults to `original`. - * @see $flavors + * @see flavors */ public static $defaultFlavor = 'original'; diff --git a/framework/web/AssetBundle.php b/framework/web/AssetBundle.php index ac554a8..aca626c 100644 --- a/framework/web/AssetBundle.php +++ b/framework/web/AssetBundle.php @@ -40,7 +40,7 @@ class AssetBundle extends BaseObject * If you do not set this property, it means the source asset files are located under [[basePath]]. * * You can use either a directory or an alias of the directory. - * @see $publishOptions + * @see publishOptions */ public $sourcePath; /** diff --git a/framework/web/CompositeUrlRule.php b/framework/web/CompositeUrlRule.php index a9c9a27..550a6d7 100644 --- a/framework/web/CompositeUrlRule.php +++ b/framework/web/CompositeUrlRule.php @@ -132,7 +132,7 @@ abstract class CompositeUrlRule extends BaseObject implements UrlRuleInterface * * @return null|int Status of the URL creation after the last [[createUrl()]] call. `null` if rule does not provide * info about create status. - * @see $createStatus + * @see createStatus * @see https://www.php.net/manual/en/language.operators.bitwise.php * @since 2.0.12 */ diff --git a/framework/web/Cookie.php b/framework/web/Cookie.php index 84b694b..434e5cd 100644 --- a/framework/web/Cookie.php +++ b/framework/web/Cookie.php @@ -22,7 +22,7 @@ class Cookie extends \yii\base\BaseObject * during CSRF-prone request methods (e.g. POST, PUT, PATCH etc). * E.g. a POST request from https://otherdomain.com to https://yourdomain.com will not include the cookie, however a GET request will. * When a user follows a link from https://otherdomain.com to https://yourdomain.com it will include the cookie - * @see $sameSite + * @see sameSite */ const SAME_SITE_LAX = 'Lax'; /** @@ -30,7 +30,7 @@ class Cookie extends \yii\base\BaseObject * regardless of the request method and even when following a regular link. * E.g. a GET request from https://otherdomain.com to https://yourdomain.com or a user following a link from * https://otherdomain.com to https://yourdomain.com will not include the cookie. - * @see $sameSite + * @see sameSite */ const SAME_SITE_STRICT = 'Strict'; /** @@ -38,8 +38,8 @@ class Cookie extends \yii\base\BaseObject * i.e in responses to both first-party and cross-origin requests. * E.g. a POST request from https://otherdomain.com to https://yourdomain.com will include the cookie. * Note: If `sameSite` is set to None, the `secure` attribute must be set to `true` (otherwise the cookie will be blocked by the browser). - * @see $sameSite - * @see $secure + * @see sameSite + * @see secure * @since 2.0.43 */ const SAME_SITE_NONE = 'None'; diff --git a/framework/web/Request.php b/framework/web/Request.php index 5868b4d..3abc9b9 100644 --- a/framework/web/Request.php +++ b/framework/web/Request.php @@ -208,7 +208,7 @@ class Request extends \yii\base\Request * See [[IpValidator::::setRanges()|IpValidator::setRanges()]] * and [[IpValidator::networks]] for advanced matching. * - * @see $secureHeaders + * @see secureHeaders * @since 2.0.13 */ public $trustedHosts = []; @@ -219,7 +219,7 @@ class Request extends \yii\base\Request * The match of header names is case-insensitive. * @see https://en.wikipedia.org/wiki/List_of_HTTP_header_fields * @see https://datatracker.ietf.org/doc/html/rfc7239 - * @see $trustedHosts + * @see trustedHosts * @since 2.0.13 */ public $secureHeaders = [ @@ -240,8 +240,8 @@ class Request extends \yii\base\Request * It's not advisable to put insecure headers here. * To use the `Forwarded` header according to RFC 7239, the header must be added to [[secureHeaders]] list. * The match of header names is case-insensitive. - * @see $trustedHosts - * @see $secureHeaders + * @see trustedHosts + * @see secureHeaders * @since 2.0.13 */ public $ipHeaders = [ @@ -252,8 +252,8 @@ class Request extends \yii\base\Request * The array keys are header names and the array value is a list of header values that indicate a secure connection. * The match of header names and values is case-insensitive. * It's not advisable to put insecure headers here. - * @see $trustedHosts - * @see $secureHeaders + * @see trustedHosts + * @see secureHeaders * @since 2.0.13 */ public $secureProtocolHeaders = [ @@ -1171,7 +1171,7 @@ class Request extends \yii\base\Request /** * Returns the user IP address from [[ipHeaders]]. * @return string|null user IP address, null if not available - * @see $ipHeaders + * @see ipHeaders * @since 2.0.28 */ protected function getUserIpFromIpHeaders() @@ -1216,9 +1216,9 @@ class Request extends \yii\base\Request * * @param string $ips comma separated IP list * @return string|null IP as string. Null is returned if IP can not be determined from header. - * @see $getUserHost - * @see $ipHeader - * @see $trustedHeaders + * @see getUserHost + * @see ipHeader + * @see trustedHeaders * @since 2.0.28 */ protected function getUserIpFromIpHeader($ips) diff --git a/framework/web/UrlRule.php b/framework/web/UrlRule.php index 25d3cd8..84719ec 100644 --- a/framework/web/UrlRule.php +++ b/framework/web/UrlRule.php @@ -42,27 +42,27 @@ class UrlRule extends BaseObject implements UrlRuleInterface const CREATION_ONLY = 2; /** * Represents the successful URL generation by last [[createUrl()]] call. - * @see $createStatus + * @see createStatus * @since 2.0.12 */ const CREATE_STATUS_SUCCESS = 0; /** * Represents the unsuccessful URL generation by last [[createUrl()]] call, because rule does not support * creating URLs. - * @see $createStatus + * @see createStatus * @since 2.0.12 */ const CREATE_STATUS_PARSING_ONLY = 1; /** * Represents the unsuccessful URL generation by last [[createUrl()]] call, because of mismatched route. - * @see $createStatus + * @see createStatus * @since 2.0.12 */ const CREATE_STATUS_ROUTE_MISMATCH = 2; /** * Represents the unsuccessful URL generation by last [[createUrl()]] call, because of mismatched * or missing parameters. - * @see $createStatus + * @see createStatus * @since 2.0.12 */ const CREATE_STATUS_PARAMS_MISMATCH = 4; @@ -543,7 +543,7 @@ class UrlRule extends BaseObject implements UrlRuleInterface * * @return null|int Status of the URL creation after the last [[createUrl()]] call. `null` if rule does not provide * info about create status. - * @see $createStatus + * @see createStatus * @since 2.0.12 */ public function getCreateUrlStatus() diff --git a/framework/widgets/ActiveField.php b/framework/widgets/ActiveField.php index 484d299..f61e965 100644 --- a/framework/widgets/ActiveField.php +++ b/framework/widgets/ActiveField.php @@ -306,7 +306,7 @@ class ActiveField extends Component * See also [[\yii\helpers\Html::tag()]]. * * If you set a custom `id` for the error element, you may need to adjust the [[$selectors]] accordingly. - * @see $errorOptions + * @see errorOptions * @return $this the field object itself. */ public function error($options = [])