mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-15 02:40:52 +08:00
Fix #20671: Fix PHPDoc annotations in yii\base, yii\console, yii\web and yii\widgets namespaces
This commit is contained in:
@@ -81,6 +81,7 @@ Yii Framework 2 Change Log
|
|||||||
- Bug #20665: Fix PHP `8.5` `null` array offset deprecation warnings in `yii\build\controllers\ReleaseController` class (terabytesoftw)
|
- Bug #20665: Fix PHP `8.5` `null` array offset deprecation warnings in `yii\build\controllers\ReleaseController` class (terabytesoftw)
|
||||||
- Bug #20658: Add missing generics in `yii\console`, `yii\captcha`, `yii\caching` and `yii\behaviors` namespaces (mspirkov)
|
- Bug #20658: Add missing generics in `yii\console`, `yii\captcha`, `yii\caching` and `yii\behaviors` namespaces (mspirkov)
|
||||||
- Bug #20666: Add missing generics in `yii\base`, `yii\console`, `yii\filters` and `yii\web` namespaces (mspirkov)
|
- Bug #20666: Add missing generics in `yii\base`, `yii\console`, `yii\filters` and `yii\web` namespaces (mspirkov)
|
||||||
|
- Bug #20671: Fix PHPDoc annotations in `yii\base`, `yii\console`, `yii\web` and `yii\widgets` namespaces (mspirkov)
|
||||||
|
|
||||||
|
|
||||||
2.0.53 June 27, 2025
|
2.0.53 June 27, 2025
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ abstract class Application extends Module
|
|||||||
*/
|
*/
|
||||||
public $sourceLanguage = 'en-US';
|
public $sourceLanguage = 'en-US';
|
||||||
/**
|
/**
|
||||||
* @var Controller the currently active controller instance
|
* @var Controller|null the currently active controller instance
|
||||||
*/
|
*/
|
||||||
public $controller;
|
public $controller;
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class Application extends \yii\base\Application
|
|||||||
*/
|
*/
|
||||||
public $enableCoreCommands = true;
|
public $enableCoreCommands = true;
|
||||||
/**
|
/**
|
||||||
* @var Controller the currently active controller instance
|
* @var Controller|null the currently active controller instance
|
||||||
*/
|
*/
|
||||||
public $controller;
|
public $controller;
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ class Application extends \yii\base\Application
|
|||||||
*/
|
*/
|
||||||
public $catchAll;
|
public $catchAll;
|
||||||
/**
|
/**
|
||||||
* @var Controller the currently active controller instance
|
* @var Controller|null the currently active controller instance
|
||||||
*/
|
*/
|
||||||
public $controller;
|
public $controller;
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ abstract class BaseListView extends Widget
|
|||||||
*/
|
*/
|
||||||
public $sorter = [];
|
public $sorter = [];
|
||||||
/**
|
/**
|
||||||
* @var string the HTML content to be displayed as the summary of the list view.
|
* @var string|null the HTML content to be displayed as the summary of the list view.
|
||||||
* If you do not want to show the summary, you may set it with an empty string.
|
* If you do not want to show the summary, you may set it with an empty string.
|
||||||
*
|
*
|
||||||
* The following tokens will be replaced with the corresponding values:
|
* The following tokens will be replaced with the corresponding values:
|
||||||
@@ -77,7 +77,7 @@ abstract class BaseListView extends Widget
|
|||||||
*/
|
*/
|
||||||
public $showOnEmpty = false;
|
public $showOnEmpty = false;
|
||||||
/**
|
/**
|
||||||
* @var string|false the HTML content to be displayed when [[dataProvider]] does not have any data.
|
* @var string|false|null the HTML content to be displayed when [[dataProvider]] does not have any data.
|
||||||
* When this is set to `false` no extra HTML content will be generated.
|
* When this is set to `false` no extra HTML content will be generated.
|
||||||
* The default value is the text "No results found." which will be translated to the current application language.
|
* The default value is the text "No results found." which will be translated to the current application language.
|
||||||
* @see showOnEmpty
|
* @see showOnEmpty
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ class ListView extends BaseListView
|
|||||||
*/
|
*/
|
||||||
public $options = ['class' => 'list-view'];
|
public $options = ['class' => 'list-view'];
|
||||||
/**
|
/**
|
||||||
* @var Closure an anonymous function that is called once BEFORE rendering each data model.
|
* @var Closure|null an anonymous function that is called once BEFORE rendering each data model.
|
||||||
* It should have the following signature:
|
* It should have the following signature:
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
@@ -94,7 +94,7 @@ class ListView extends BaseListView
|
|||||||
*/
|
*/
|
||||||
public $beforeItem;
|
public $beforeItem;
|
||||||
/**
|
/**
|
||||||
* @var Closure an anonymous function that is called once AFTER rendering each data model.
|
* @var Closure|null an anonymous function that is called once AFTER rendering each data model.
|
||||||
*
|
*
|
||||||
* It should have the same signature as [[beforeItem]].
|
* It should have the same signature as [[beforeItem]].
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class MaskedInput extends InputWidget
|
|||||||
*/
|
*/
|
||||||
public $mask;
|
public $mask;
|
||||||
/**
|
/**
|
||||||
* @var array custom mask definitions to use. Should be configured as `maskSymbol => settings`, where
|
* @var array|null custom mask definitions to use. Should be configured as `maskSymbol => settings`, where
|
||||||
*
|
*
|
||||||
* - `maskSymbol` is a string, containing a character to identify your mask definition and
|
* - `maskSymbol` is a string, containing a character to identify your mask definition and
|
||||||
* - `settings` is an array, consisting of the following entries:
|
* - `settings` is an array, consisting of the following entries:
|
||||||
@@ -75,7 +75,7 @@ class MaskedInput extends InputWidget
|
|||||||
*/
|
*/
|
||||||
public $definitions;
|
public $definitions;
|
||||||
/**
|
/**
|
||||||
* @var array custom aliases to use. Should be configured as `maskAlias => settings`, where
|
* @var array|null custom aliases to use. Should be configured as `maskAlias => settings`, where
|
||||||
*
|
*
|
||||||
* - `maskAlias` is a string containing a text to identify your mask alias definition (e.g. 'phone') and
|
* - `maskAlias` is a string containing a text to identify your mask alias definition (e.g. 'phone') and
|
||||||
* - `settings` is an array containing settings for the mask symbol, exactly similar to parameters as passed in [[clientOptions]].
|
* - `settings` is an array containing settings for the mask symbol, exactly similar to parameters as passed in [[clientOptions]].
|
||||||
@@ -99,7 +99,7 @@ class MaskedInput extends InputWidget
|
|||||||
public $type = 'text';
|
public $type = 'text';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string the hashed variable to store the pluginOptions
|
* @var string|null the hashed variable to store the pluginOptions
|
||||||
*/
|
*/
|
||||||
protected $_hashVar;
|
protected $_hashVar;
|
||||||
/**
|
/**
|
||||||
@@ -196,10 +196,10 @@ class MaskedInput extends InputWidget
|
|||||||
$this->clientOptions['mask'] = $this->mask;
|
$this->clientOptions['mask'] = $this->mask;
|
||||||
}
|
}
|
||||||
$this->hashPluginOptions($view);
|
$this->hashPluginOptions($view);
|
||||||
if (!empty($this->definitions) && is_array($this->definitions)) {
|
if (is_array($this->definitions) && !empty($this->definitions)) {
|
||||||
$js .= ucfirst(self::PLUGIN_NAME) . '.extendDefinitions(' . Json::htmlEncode($this->definitions) . ');';
|
$js .= ucfirst(self::PLUGIN_NAME) . '.extendDefinitions(' . Json::htmlEncode($this->definitions) . ');';
|
||||||
}
|
}
|
||||||
if (!empty($this->aliases) && is_array($this->aliases)) {
|
if (is_array($this->aliases) && !empty($this->aliases)) {
|
||||||
$js .= ucfirst(self::PLUGIN_NAME) . '.extendAliases(' . Json::htmlEncode($this->aliases) . ');';
|
$js .= ucfirst(self::PLUGIN_NAME) . '.extendAliases(' . Json::htmlEncode($this->aliases) . ');';
|
||||||
}
|
}
|
||||||
$id = $this->options['id'];
|
$id = $this->options['id'];
|
||||||
|
|||||||
@@ -406,6 +406,6 @@ parameters:
|
|||||||
path: framework/caching/Dependency.php
|
path: framework/caching/Dependency.php
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Property yii\\\\console\\\\Application\\:\\:\\$controller \\(yii\\\\console\\\\Controller\\|yii\\\\web\\\\Controller\\) does not accept yii\\\\base\\\\Controller\\.$#"
|
message: "#^Property yii\\\\console\\\\Application\\:\\:\\$controller \\(yii\\\\console\\\\Controller\\|yii\\\\web\\\\Controller\\|null\\) does not accept yii\\\\base\\\\Controller\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
path: framework/base/Module.php
|
path: framework/base/Module.php
|
||||||
|
|||||||
Reference in New Issue
Block a user