Skip to content

Commit

Permalink
release version 2.0.39
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Nov 10, 2020
1 parent 09d9600 commit ccb14ff
Show file tree
Hide file tree
Showing 60 changed files with 286 additions and 267 deletions.
2 changes: 1 addition & 1 deletion framework/BaseYii.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class BaseYii
*/
public static function getVersion()
{
return '2.0.39-dev';
return '2.0.39';
}

/**
Expand Down
14 changes: 7 additions & 7 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
Yii Framework 2 Change Log
==========================

2.0.39 under development
2.0.39 November 10, 2020
------------------------

- Enh #18247: Add support for the 'session.use_strict_mode' ini directive in `yii\web\Session` (rhertogh)
- Bug #18263: Fix writing `\yii\caching\FileCache` files to the same directory when `keyPrefix` is set (githubjeka)
- Bug #16418: Fix `yii\data\Pagination::getLinks()` to return links to the first and the last pages regardless of the current page (ptz-nerf, bizley)
- Bug #16831: Fix console Table widget does not render correctly in combination with ANSI formatting (issidorov, cebe)
- Bug #18160, #18192: Fix `registerFile` with set argument `depends` does not take `position` and `appendTimestamp` into account (baleeny)
- Bug #18263: Fix writing `\yii\caching\FileCache` files to the same directory when `keyPrefix` is set (githubjeka)
- Bug #18287: Fix for `OUTPUT INSERTED` and computed columns. Add flag to mark computed values in table schema (darkdef)
- Bug #18290: Fix response with non-seekable streams (schmunk42)
- Bug #16418: Fix `yii\data\Pagination::getLinks()` to return links to the first and the last pages regardless of the current page (ptz-nerf, bizley)
- Bug #18297: Replace usage of deprecated `ReflectionParameter::isArray()` method in PHP8 (baletskyi)
- Bug #18303: Fix creating migration for column methods used after `defaultValues` (wsaid)
- Bug #18287: Fix for `OUTPUT INSERTED` and computed columns. Add flag to mark computed values in table schema (darkdef)
- Bug #18308: Fix `\yii\base\Model::getErrorSummary()` reverse order (DrDeath72)
- Bug #18313: Fix multipart form data parsing with double quotes (wsaid)
- Bug #18317: Additional PHP 8 compatibility fixes (samdark, bizley)
- Bug #16831: Fix console Table widget does not render correctly in combination with ANSI formatting (issidorov, cebe)
- Enh #18304: Add support of constructor parameters with default values to DI container (vjik)
- Enh #18247: Add support for the 'session.use_strict_mode' ini directive in `yii\web\Session` (rhertogh)
- Enh #18285: Enhanced DI container to allow passing parameters by name in a constructor (vjik)
- Enh #18304: Add support of constructor parameters with default values to DI container (vjik)
- Enh #18351: Add option to change default timezone for parsing formats without time part in `yii\validators\DateValidator` (bizley)


Expand Down
2 changes: 1 addition & 1 deletion framework/base/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*
* For more details and usage information on Action, see the [guide article on actions](guide:structure-controllers).
*
* @property string $uniqueId The unique ID of this action among the whole application. This property is
* @property-read string $uniqueId The unique ID of this action among the whole application. This property is
* read-only.
*
* @author Qiang Xue <[email protected]>
Expand Down
44 changes: 25 additions & 19 deletions framework/base/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,39 @@
*
* For more details and usage information on Application, see the [guide article on applications](guide:structure-applications).
*
* @property \yii\web\AssetManager $assetManager The asset manager application component. This property is
* read-only.
* @property \yii\rbac\ManagerInterface $authManager The auth manager application component. Null is returned
* if auth manager is not configured. This property is read-only.
* @property-read \yii\web\AssetManager $assetManager The asset manager application component. This property
* is read-only.
* @property-read \yii\rbac\ManagerInterface $authManager The auth manager application component. Null is
* returned if auth manager is not configured. This property is read-only.
* @property string $basePath The root directory of the application.
* @property \yii\caching\CacheInterface $cache The cache application component. Null if the component is not
* enabled. This property is read-only.
* @property array $container Values given in terms of name-value pairs. This property is write-only.
* @property \yii\db\Connection $db The database connection. This property is read-only.
* @property \yii\web\ErrorHandler|\yii\console\ErrorHandler $errorHandler The error handler application
* @property-read \yii\caching\CacheInterface $cache The cache application component. Null if the component is
* not enabled. This property is read-only.
* @property-write array $container Values given in terms of name-value pairs. This property is write-only.
* @property-read \yii\db\Connection $db The database connection. This property is read-only.
* @property-read \yii\web\ErrorHandler|\yii\console\ErrorHandler $errorHandler The error handler application
* component. This property is read-only.
* @property \yii\i18n\Formatter $formatter The formatter application component. This property is read-only.
* @property \yii\i18n\I18N $i18n The internationalization application component. This property is read-only.
* @property \yii\log\Dispatcher $log The log dispatcher application component. This property is read-only.
* @property \yii\mail\MailerInterface $mailer The mailer application component. This property is read-only.
* @property \yii\web\Request|\yii\console\Request $request The request component. This property is read-only.
* @property \yii\web\Response|\yii\console\Response $response The response component. This property is
* @property-read \yii\i18n\Formatter $formatter The formatter application component. This property is
* read-only.
* @property-read \yii\i18n\I18N $i18n The internationalization application component. This property is
* read-only.
* @property-read \yii\log\Dispatcher $log The log dispatcher application component. This property is
* read-only.
* @property-read \yii\mail\MailerInterface $mailer The mailer application component. This property is
* read-only.
* @property-read \yii\web\Request|\yii\console\Request $request The request component. This property is
* read-only.
* @property-read \yii\web\Response|\yii\console\Response $response The response component. This property is
* read-only.
* @property string $runtimePath The directory that stores runtime files. Defaults to the "runtime"
* subdirectory under [[basePath]].
* @property \yii\base\Security $security The security application component. This property is read-only.
* @property-read \yii\base\Security $security The security application component. This property is read-only.
* @property string $timeZone The time zone used by this application.
* @property string $uniqueId The unique ID of the module. This property is read-only.
* @property \yii\web\UrlManager $urlManager The URL manager for this application. This property is read-only.
* @property-read string $uniqueId The unique ID of the module. This property is read-only.
* @property-read \yii\web\UrlManager $urlManager The URL manager for this application. This property is
* read-only.
* @property string $vendorPath The directory that stores vendor files. Defaults to "vendor" directory under
* [[basePath]].
* @property View|\yii\web\View $view The view application component that is used to render various view
* @property-read View|\yii\web\View $view The view application component that is used to render various view
* files. This property is read-only.
*
* @author Qiang Xue <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion framework/base/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@
*
* For more details and usage information on Component, see the [guide article on components](guide:concept-components).
*
* @property Behavior[] $behaviors List of behaviors attached to this component. This property is read-only.
* @property-read Behavior[] $behaviors List of behaviors attached to this component. This property is
* read-only.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
10 changes: 5 additions & 5 deletions framework/base/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
*
* For more details and usage information on Controller, see the [guide article on controllers](guide:structure-controllers).
*
* @property Module[] $modules All ancestor modules that this controller is located within. This property is
* read-only.
* @property string $route The route (module ID, controller ID and action ID) of the current request. This
* @property-read Module[] $modules All ancestor modules that this controller is located within. This property
* is read-only.
* @property-read string $route The route (module ID, controller ID and action ID) of the current request.
* This property is read-only.
* @property-read string $uniqueId The controller ID that is prefixed with the module ID (if any). This
* property is read-only.
* @property string $uniqueId The controller ID that is prefixed with the module ID (if any). This property is
* read-only.
* @property View|\yii\web\View $view The view object that can be used to render views or view files.
* @property string $viewPath The directory containing the view files for this controller.
*
Expand Down
4 changes: 2 additions & 2 deletions framework/base/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public static function convertExceptionToError($exception)

/**
* Converts an exception into a simple string.
* @param \Exception|\Error|\Throwable $exception the exception being converted
* @param \Exception|\Error|\Throwable $exception the exception being converted
* @return string the string representation of the exception.
*/
public static function convertExceptionToString($exception)
Expand All @@ -363,7 +363,7 @@ public static function convertExceptionToString($exception)

/**
* Converts an exception into a string that has verbose information about the exception and its trace.
* @param \Exception|\Error|\Throwable $exception the exception being converted
* @param \Exception|\Error|\Throwable $exception the exception being converted
* @return string the string representation of the exception.
*
* @since 2.0.14
Expand Down
17 changes: 9 additions & 8 deletions framework/base/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@
*
* For more details and usage information on Model, see the [guide article on models](guide:structure-models).
*
* @property \yii\validators\Validator[] $activeValidators The validators applicable to the current
* @property-read \yii\validators\Validator[] $activeValidators The validators applicable to the current
* [[scenario]]. This property is read-only.
* @property array $attributes Attribute values (name => value).
* @property array $errors An array of errors for all attributes. Empty array is returned if no error. The
* result is a two-dimensional array. See [[getErrors()]] for detailed description. This property is read-only.
* @property array $firstErrors The first errors. The array keys are the attribute names, and the array values
* are the corresponding error messages. An empty array will be returned if there is no error. This property is
* @property-read array $errors An array of errors for all attributes. Empty array is returned if no error.
* The result is a two-dimensional array. See [[getErrors()]] for detailed description. This property is
* read-only.
* @property ArrayIterator $iterator An iterator for traversing the items in the list. This property is
* @property-read array $firstErrors The first errors. The array keys are the attribute names, and the array
* values are the corresponding error messages. An empty array will be returned if there is no error. This
* property is read-only.
* @property-read ArrayIterator $iterator An iterator for traversing the items in the list. This property is
* read-only.
* @property string $scenario The scenario that this model is in. Defaults to [[SCENARIO_DEFAULT]].
* @property ArrayObject|\yii\validators\Validator[] $validators All the validators declared in the model.
* This property is read-only.
* @property-read ArrayObject|\yii\validators\Validator[] $validators All the validators declared in the
* model. This property is read-only.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
12 changes: 6 additions & 6 deletions framework/base/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
*
* For more details and usage information on Module, see the [guide article on modules](guide:structure-modules).
*
* @property array $aliases List of path aliases to be defined. The array keys are alias names (must start
* with `@`) and the array values are the corresponding paths or aliases. See [[setAliases()]] for an example.
* This property is write-only.
* @property-write array $aliases List of path aliases to be defined. The array keys are alias names (must
* start with `@`) and the array values are the corresponding paths or aliases. See [[setAliases()]] for an
* example. This property is write-only.
* @property string $basePath The root directory of the module.
* @property string $controllerPath The directory that contains the controller classes. This property is
* @property-read string $controllerPath The directory that contains the controller classes. This property is
* read-only.
* @property string $layoutPath The root directory of layout files. Defaults to "[[viewPath]]/layouts".
* @property array $modules The modules (indexed by their IDs).
* @property string $uniqueId The unique ID of the module. This property is read-only.
* @property-read string $uniqueId The unique ID of the module. This property is read-only.
* @property string $version The version of this module. Note that the type of this property differs in getter
* and setter. See [[getVersion()]] and [[setVersion()]] for details.
* and setter. See [[getVersion()]] and [[setVersion()]] for details.
* @property string $viewPath The root directory of view files. Defaults to "[[basePath]]/views".
*
* @author Qiang Xue <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion framework/base/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* For more details and usage information on View, see the [guide article on views](guide:structure-views).
*
* @property string|bool $viewFile The view file currently being rendered. False if no view file is being
* @property-read string|bool $viewFile The view file currently being rendered. False if no view file is being
* rendered. This property is read-only.
*
* @author Qiang Xue <[email protected]>
Expand Down
7 changes: 4 additions & 3 deletions framework/base/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*
* For more details and usage information on Widget, see the [guide article on widgets](guide:structure-widgets).
*
* @property string $id ID of the widget.
* @property string|null $id ID of the widget. Note that the type of this property differs in getter and
* setter. See [[getId()]] and [[setId()]] for details.
* @property \yii\web\View $view The view object that can be used to render views or view files. Note that the
* type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details.
* @property string $viewPath The directory containing the view files for this widget. This property is
* type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details.
* @property-read string $viewPath The directory containing the view files for this widget. This property is
* read-only.
*
* @author Qiang Xue <[email protected]>
Expand Down
6 changes: 3 additions & 3 deletions framework/caching/MemCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
*
* For more details and usage information on Cache, see the [guide article on caching](guide:caching-overview).
*
* @property \Memcache|\Memcached $memcache The memcache (or memcached) object used by this cache component.
* This property is read-only.
* @property-read \Memcache|\Memcached $memcache The memcache (or memcached) object used by this cache
* component. This property is read-only.
* @property MemCacheServer[] $servers List of memcache server configurations. Note that the type of this
* property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details.
* property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
2 changes: 1 addition & 1 deletion framework/captcha/CaptchaAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* to be validated by the 'captcha' validator.
* 3. In the controller view, insert a [[Captcha]] widget in the form.
*
* @property string $verifyCode The verification code. This property is read-only.
* @property-read string $verifyCode The verification code. This property is read-only.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
7 changes: 4 additions & 3 deletions framework/console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
* yii help
* ```
*
* @property ErrorHandler $errorHandler The error handler application component. This property is read-only.
* @property Request $request The request component. This property is read-only.
* @property Response $response The response component. This property is read-only.
* @property-read ErrorHandler $errorHandler The error handler application component. This property is
* read-only.
* @property-read Request $request The request component. This property is read-only.
* @property-read Response $response The response component. This property is read-only.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
10 changes: 5 additions & 5 deletions framework/console/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
* where `<route>` is a route to a controller action and the params will be populated as properties of a command.
* See [[options()]] for details.
*
* @property string $help This property is read-only.
* @property string $helpSummary This property is read-only.
* @property array $passedOptionValues The properties corresponding to the passed options. This property is
* read-only.
* @property array $passedOptions The names of the options passed during execution. This property is
* @property-read string $help This property is read-only.
* @property-read string $helpSummary This property is read-only.
* @property-read array $passedOptionValues The properties corresponding to the passed options. This property
* is read-only.
* @property-read array $passedOptions The names of the options passed during execution. This property is
* read-only.
* @property Request $request
* @property Response $response
Expand Down
2 changes: 1 addition & 1 deletion framework/console/controllers/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* check [[jsCompressor]] and [[cssCompressor]] for more details.
*
* @property \yii\web\AssetManager $assetManager Asset manager instance. Note that the type of this property
* differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details.
* differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details.
*
* @author Qiang Xue <[email protected]>
* @author Paul Klimov <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion framework/console/controllers/HelpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* In the above, if the command name is not provided, all
* available commands will be displayed.
*
* @property array $commands All available command names. This property is read-only.
* @property-read array $commands All available command names. This property is read-only.
*
* @author Qiang Xue <[email protected]>
* @since 2.0
Expand Down
4 changes: 2 additions & 2 deletions framework/console/widgets/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
* ],
* ]);
*
* @property string $listPrefix List prefix. This property is write-only.
* @property int $screenWidth Screen width. This property is write-only.
* @property-write string $listPrefix List prefix. This property is write-only.
* @property-write int $screenWidth Screen width. This property is write-only.
*
* @author Daniel Gomez Pan <[email protected]>
* @since 2.0.13
Expand Down
Loading

0 comments on commit ccb14ff

Please sign in to comment.