19641 Commits

Author SHA1 Message Date
bdc29982fa Fix @method signatures in ActiveRelationTrait (#18369) 2020-11-06 20:13:19 +03:00
1d514e2ded Revert "Fix anchors in docs (#18344)"
This reverts commit 0f4b147352f2524f2a1530d419d13a8c8acd5069.
2020-11-05 14:14:35 +03:00
50d5fb2bd9 Fix #18304: Added support of constructor parameters with default values to DI container 2020-11-02 19:44:13 +03:00
835971c6f6 Fix Controller phpdoc annotations 2020-11-02 13:13:11 +03:00
0f4b147352 Fix anchors in docs (#18344) 2020-11-01 17:51:16 +03:00
306171b582 Add phpdoc for properties "request" and "response" in web and console controllers (#18361) 2020-11-01 17:38:32 +03:00
7e4026cd62 Fixed UPGRADE.md for "Respect ini session use strict mode" (#18362) 2020-11-01 17:37:41 +03:00
23cfb38cea Fix #18285: Enhanced DI container to allow passing parameters by name in constructor 2020-11-01 00:31:27 +03:00
840083724e Fix #18351: Added option to change default timezone for parsing formats without time part in yii\validators\DateValidator 2020-10-31 15:59:20 +03:00
ce088e05df Fix #18247: Added support for the 'session.use_strict_mode' ini directive in yii\web\Session 2020-10-31 11:58:34 +03:00
9bd0a7c530 Merge remote-tracking branch 'origin/master' 2020-10-30 22:36:02 +03:00
c60e715df1 Add bootstrap4 to build tools packages list 2020-10-30 22:35:17 +03:00
7d25dc72a9 Apply PHPUnit patches from URL (#18356) 2020-10-30 22:21:20 +03:00
e026e9e7be Update lock 2020-10-30 15:35:30 +03:00
8651a79716 Update tutorial-core-validators.md (#18348)
The `DefaultValueValidator` works only with closures not with any callable as suggested.
See f8337a15c2/framework/validators/DefaultValueValidator.php (L47)

```
    /**
     * {@inheritdoc}
     */
    public function validateAttribute($model, $attribute)
    {
        if ($this->isEmpty($model->$attribute)) {
            if ($this->value instanceof \Closure) {
                $model->$attribute = call_user_func($this->value, $model, $attribute);
            } else {
                $model->$attribute = $this->value;
            }
        }
    }
```
2020-10-29 11:32:14 +03:00
9d338eed2b Fix: chinese document index page sphinx,redis,mogondb,elastic link is inactive (#18354) 2020-10-29 10:57:38 +03:00
9e184aaeae Typo fix "Enntêtes HTTP" (#18350)
Typo fix on "Enntêtes HTTP", should be "Entêtes HTTP" instead.
2020-10-26 18:27:35 +03:00
f8337a15c2 Fix #18263: Fix writing \yii\caching\FileCache files to the same directory when keyPrefix is set 2020-10-24 13:13:19 +03:00
cd36f505b1 Fix #16831: Fix console Table Widget does not render correctly in combination with ANSI formatting 2020-10-23 22:21:03 +03:00
ed1c087784 Fix #18317: Additional PHP 8 compatibility fixes
Co-authored-by: Bizley <pawel@positive.codes>
2020-10-23 12:42:44 +03:00
7354329ed6 Improvements for Russian documentation (#18343)
Added a little grammar, removed redundant words, improved the perception
of the text
2020-10-22 02:24:21 +03:00
f94fd13228 Adjust types in ActiveRecordInterface::updateAll() phpdoc (#18341) 2020-10-19 22:49:13 +03:00
251a3aaf23 Fix #18336: typo in documentation 2020-10-19 01:21:07 +03:00
7ff516063d Fix #18160, fix #18192: Fixed registerFile with argument depends set does not use the position and appendTimestamp argument, also modify the unit view 2020-10-11 15:03:12 +03:00
d451eaf53b Fix typo (#18324) 2020-10-11 14:58:59 +03:00
1e7fbb2689 Update db-migrations.md (#18320)
Correcting a typo
2020-10-08 19:09:21 +03:00
801ac17657 Fix #16077: Improved phpdoc generation for class properties (#18319)
When generating documentation, the `@property-read` and
`@property-write` tags are set to the magic properties of classes
2020-10-07 01:12:10 +03:00
7a8d32e176 Add colors to CI (#18316) 2020-10-05 17:03:07 +03:00
3dabcdb6ab Fix #18313: Fix multipart form data parse with double quotes 2020-10-05 13:08:32 +03:00
3f3003d823 Fix #18303: Fix creating migration issue for column methods used after defaultValues 2020-10-05 01:02:21 +03:00
7a50da5cf8 Fix #18287: Fix for OUTPUT INSERTED and computed columns. Added flag to computed values in table schema 2020-10-04 21:44:18 +03:00
88e79d3f8e Fix #18290: Fix response with non-seekable streams 2020-10-02 11:48:02 +03:00
0210999748 Fix #18308: Fixed \yii\base\Model::getErrorSummary() reverse order 2020-10-02 11:43:30 +03:00
c16a7fdfb2 Fix usage of Object in Chinese guide (#18310) 2020-09-30 18:35:22 +03:00
03da5bb689 Updates to ErrorHandler, add missing type hint \Throwable (#18302)
* Updated phpdoc so it has \Throwable

- `abstract protected function renderException($exception);` is extended in web/ErrorHandler to also have `\Error`.
- `public static function convertExceptionToError($exception)` is called from widgets/ActiveField.php with 
```
/**
     * PHP magic method that returns the string representation of this object.
     * @return string the string representation of this object.
     */
    public function __toString()
    {
        // __toString cannot throw exception
        // use trigger_error to bypass this limitation
        try {
            return $this->render();
        } catch (\Exception $e) {
            ErrorHandler::convertExceptionToError($e);
            return '';
        } catch (\Throwable $e) {
            ErrorHandler::convertExceptionToError($e);
            return '';
        }
    }
```

* Add \Throwable to phpdoc in response.php 

The ErrorHandler has been updated in phpdoc to have throwable, this complets that change.

* Update ErrorHandler.php

fixed missing `|`
2020-09-30 02:34:23 +03:00
1d7baabab5 Fix #18297: Replace usage of deprecated ReflectionParameter::isArray() method in PHP8 2020-09-22 00:26:37 +03:00
affd796c5c Updated phpdoc return type for getExceptionName (#18296)
`getExceptionName` can return null, as described in phpdoc.
2020-09-21 23:03:02 +03:00
2ce927788a Update phpdoc for widget->getId (#18295)
The private variable `$_id`  is only set when `$autogenerate` is true, else it stays null, and will be returned by the function.
2020-09-21 14:56:52 +03:00
67728476ec Fix #16418: Fixed yii\data\Pagination::getLinks() to return links to the first and the last pages regardless of the current page 2020-09-21 00:18:52 +03:00
9790ea3a35 Add tests to ensure ActiveQuery is using DB connection set by model (#18286) 2020-09-17 20:07:32 +03:00
c48254cafa Minor typo fix in bg translation (#18282) 2020-09-15 12:29:09 +03:00
928b511d75 prepare for next release 2020-09-15 00:52:42 +03:00
6e694ee249 release version 2.0.38 2.0.38 2020-09-15 00:52:10 +03:00
9abccb96d7 Merge pull request from GHSA-699q-wcff-g9mj
* Fix unsafe unserialize()

* Add changelog and comments on why unserialize() is disabled

* Add since tag
2020-09-15 00:15:51 +03:00
52ae0dabdc Adjust changelog messages 2020-09-14 16:45:21 +03:00
Sam
9c838207ce Bug #18245: Make resolving DI references inside of arrays in dependencies optional
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Andrii Vasyliev <sol@hiqdev.com>
2020-09-14 16:15:31 +03:00
973ecda74c Fix #16892: Validation error class was not applied to checkbox and radio when validationStateOn = self::VALIDATION_STATE_ON_INPUT
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-09-11 22:28:10 +03:00
e5e80ac5ec Fix testGetColumType for PostgreSQL (#18279) 2020-09-11 19:23:00 +03:00
5558ee793b Fix #18040, fix #15265, fix #18232 database issues (#18225)
- Bug #18040: Display width specification for integer data types was deprecated in MySQL 8.0.19
- Bug #15265: PostgreSQL > 10.0 is not pass tests with default value of timestamp CURRENT_TIMESTAMP
- Bug #18232: Fail tests pgsql v-10.14, v-11.9, v-12-latest
2020-09-10 20:36:04 +03:00
1972741bae Install codeception as a dev dependency (#18277) 2020-09-10 19:54:56 +03:00