Commit Graph

8773 Commits

Author SHA1 Message Date
DarkDef
f94fd13228 Adjust types in ActiveRecordInterface::updateAll() phpdoc (#18341) 2020-10-19 22:49:13 +03:00
Toir427
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
Walid Said
3dabcdb6ab Fix #18313: Fix multipart form data parse with double quotes 2020-10-05 13:08:32 +03:00
Walid Said
3f3003d823 Fix #18303: Fix creating migration issue for column methods used after defaultValues 2020-10-05 01:02:21 +03:00
DarkDef
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
Tobias Munk
88e79d3f8e Fix #18290: Fix response with non-seekable streams 2020-10-02 11:48:02 +03:00
DrDeath72
0210999748 Fix #18308: Fixed \yii\base\Model::getErrorSummary() reverse order 2020-10-02 11:43:30 +03:00
My6UoT9
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
Alex
1d7baabab5 Fix #18297: Replace usage of deprecated ReflectionParameter::isArray() method in PHP8 2020-09-22 00:26:37 +03:00
My6UoT9
affd796c5c Updated phpdoc return type for getExceptionName (#18296)
`getExceptionName` can return null, as described in phpdoc.
2020-09-21 23:03:02 +03:00
My6UoT9
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
Bizley
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
yakninja
c48254cafa Minor typo fix in bg translation (#18282) 2020-09-15 12:29:09 +03:00
Alexander Makarov
928b511d75 prepare for next release 2020-09-15 00:52:42 +03:00
Alexander Makarov
6e694ee249 release version 2.0.38 2020-09-15 00:52:10 +03:00
Alexander Makarov
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
Alexander Makarov
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
Daniel Szabo
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
Wilmer Arambula
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
parthjani07
72fb200f04 Fix typos in Hindi language (#18276) 2020-09-09 01:11:39 +03:00
DarkDef
4b2af4d2a4 Bug #13973: Correct alterColumn for MSSQL & drop constraints before drop column
Fixing #11158 and #13973
2020-09-08 12:50:32 +03:00
Alex
287476465d Fix #18196: yii\rbac\DbManager::$checkAccessAssignments is now protected 2020-09-08 12:16:39 +03:00
JesseHines0
db4beebe23 Fix #18213: Do not load fixtures with circular dependencies twice instead of throwing an exception 2020-09-07 15:47:20 +03:00
Maxim Hodyrev
09dc9b70f8 Fix #18066: Fixed yii\db\Query::create() wasn't using all info from withQuery() 2020-09-07 15:45:57 +03:00
Alexander Makarov
e81b0f00a7 Fix #18235: Document inline validator change regarding static closures 2020-09-07 14:51:12 +03:00
Michael Härtl
9aa46136f6 Fix #18248: Render only one stack trace on console for chained exceptions 2020-09-07 01:34:22 +03:00
Vladislav Pototskiy
e348c0f460 Fix #18269: Fix integer safe attribute to work properly in yii\base\Model 2020-09-07 00:33:50 +03:00
azbuk
b680494d6b Fix typo in message for lang uz (#18272) 2020-09-06 18:00:55 +03:00
Tobias Munk
7423222eae Add docs about IP blocks for property $ips (#18261) 2020-08-27 16:44:34 +03:00
DarkDef
f212925242 Fix #18239: Fix support of no-extension files for FileValidator::validateExtension() 2020-08-19 20:32:15 +03:00
Basil
175a201004 Fix #18236: Allow yii\filters\RateLimiter to accept a closure function for the $user property in order to assign values on runtime 2020-08-19 13:57:45 +03:00
DarkDef
705be8fb85 Fix #18229: Add a flag to set Connection to SyBase mode
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-08-18 20:48:24 +03:00
Alexander Makarov
40fc68e239 Fix #18233: Add PHP 8 support 2020-08-17 03:10:05 +03:00
Alexander Makarov
38b1eb2c3e prepare for next release 2020-08-07 23:12:20 +03:00
Alexander Makarov
15e233574c release version 2.0.37 2020-08-07 23:11:56 +03:00
Michael Härtl
aca01e4fec Fix #18217: Make yii\console\ErrorHandler render chained exceptions in debug mode 2020-08-07 18:53:36 +03:00
Mathias
f839a02414 Fix #18156: Fix yii\db\Schema::quoteSimpleTableName() was checking incorrect quote character 2020-08-07 11:59:51 +03:00
Alexander Makarov
523e4b324b Fix #18175: Add upgrade note for 2.0.36 about inline validator defined as closure 2020-08-07 11:38:10 +03:00
Alexander Makarov
7e2601fa1c Fix incorrect source message KB -> kB in several translations 2020-08-07 11:27:40 +03:00
Alex Yashkin
758c27f48f Use kB instead of KB in Belarusian messages (#18220) 2020-08-07 11:26:15 +03:00
Alexander Makarov
7cc538c0a9 Fix #18203: PDO exception code was not properly passed to yii\db\Exception 2020-08-05 17:06:16 +03:00
Alex
e49a52f3a1 Fix #18210: Allow strict comparison for multi-select inputs 2020-08-05 15:12:42 +03:00
DarkDef
a624c31698 Fix #18198: Fix saving tables with trigger by outputting inserted data from insert query with usage of temporary table 2020-08-05 09:39:05 +03:00
Alexander Makarov
f34d160179 Remove unused use 2020-08-05 09:23:12 +03:00
Kartik Visweswaran
cf364f5e00 Fix #17147: Fix form attribute validations for empty select inputs 2020-08-04 19:47:40 +03:00
Alexander Makarov
1ade4993f9 Fix #18204: Fix 2.0.36 regression in inline validator and JS validation 2020-08-04 14:24:43 +03:00
Sergei Predvoditelev
a496eeaf83 Fix #18205: Add .phpstorm.meta.php file for better auto-completion in PhpStorm 2020-08-04 12:27:35 +03:00
Bizley
c47aed2a7c ExistValidator info (#18197) 2020-07-22 16:49:49 +03:00