9158 Commits

Author SHA1 Message Date
adadbefe88 Fix #19469: Fix a virtual relation not working because of new isset checks in \yii\db\ActiveRelationTrait 2022-07-15 23:52:39 +03:00
dcb0750587 Fix #19454: Fix PDO exception code not properly passed to yii\db\Exception 2022-07-07 18:24:06 +03:00
827db6c90e Revert "Fix #19290: Fix Request::getHostInfo() doesn’t return the port if a Host header is used"
This reverts commit 8046d3a50f207e1033e1b23ff571da5bced0c822.
2022-07-01 10:28:31 +03:00
c5c792cb07 Update ActiveRelationTrait.php (#19453)
* Update ActiveRelationTrait.php

* Update ActiveRelationTrait.php

* Update framework/db/ActiveRelationTrait.php

Co-authored-by: Bizley <pawel@positive.codes>

Co-authored-by: Bizley <pawel@positive.codes>
2022-06-24 09:02:04 +02:00
6c4d3456b3 Optimize ErrorHandler::handleFatalError() (#19444) 2022-06-21 00:17:35 +03:00
34708b4cf4 Fix #19400: Fix passing null in yii\web\Response::redirect() 2022-06-21 00:15:07 +03:00
4c1cae3d6d Improve reflection param/return types in console\Controller (#19431) 2022-06-17 20:21:44 +03:00
45519d3c18 Fix #19437: Add support to specify request port by trusted proxies in \yii\web\Request::getServerPort() 2022-06-17 20:18:18 +03:00
474a67da99 Fix caching in Formatter::getUnitMessage() (#19445)
* Fix caching in `Formatter::getUnitMessage()`

* Update FormatterTest.php

* Update CHANGELOG.md
2022-06-16 11:32:08 +02:00
f72310c398 fix composite auth ignore only/except filters of auth methods (#19418)
* fix compositeAuth ignore only/except filters of child auth methods

* fix

* add tests for wrong token

* fix

* update changelog

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2022-06-15 10:06:38 +02:00
f2b2d576be fix: typecast for backed enums (#19319)
* fix: typecast for backed enums

Fixes #19318

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2022-06-15 10:03:50 +02:00
07918b6c8f Fix manual cubrid links (#19436)
* Update Schema.php

fix broken link

* fix cubrid manual links

* update links

* fxi
2022-06-13 12:23:58 +02:00
1f59b72a9d Truncate help add method and suffix (#19425)
https://github.com/yiisoft/yii2/pull/19424
2022-06-02 11:46:06 +02:00
e21cbb544b Make docs more clear about the length of the result (#19424) 2022-06-02 11:26:40 +02:00
4d0d25d479 Fix #19401: Delay exit(1) in yii\base\ErrorHandler::handleFatalError 2022-06-02 00:13:47 +03:00
58afaaf4d2 Change http to https in requirements.php (#19423) 2022-06-01 23:23:56 +03:00
d9c41fa207 Fix #19420: Update list of JS callbacks in yii\widgets\MaskedInput 2022-06-01 11:33:28 +03:00
a98ab994ad Fix #19403: Fix types in yii\web\SessionIterator 2022-06-01 11:23:36 +03:00
c1801c7c61 Fix #19402: Add shutdown event and fix working directory in yii\base\ErrorHandler 2022-06-01 10:38:27 +03:00
a345649871 Normalize PhpDoc types in AssetsManager (#19419) 2022-06-01 10:30:10 +03:00
14369f0a51 Fix outdated links in Formatter (#19422) 2022-06-01 08:07:27 +02:00
a1df078c7b Fix translators in messages/config.php (#19416)
* Fix translators in `messages/config.php` 

#19415

* Update messageConfig.php

* Update config.php

* Update messageConfig.php

* Update CHANGELOG.md

* Update framework/CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>

Co-authored-by: Bizley <pawel@positive.codes>
2022-05-30 11:52:06 +02:00
45640004c3 Add TrimValidator to classes.php (#19412) 2022-05-27 12:59:22 +02:00
e39e744b45 Fix #19384: Normalize setBodyParams() and getBodyParam() in yii\web\Request 2022-05-23 10:39:33 +04:00
c409264484 Fix BaseArrayHelper::htmlDecode() (#19386)
* Fix BaseArrayHelper::htmlDecode()

Add missed second argument on recursive calling.

* Fix BaseArrayHelper::htmlDecode()

`htmlspecialchars_decode()` flags must be same to `htmlspecialchars()` in `BaseArrayHelper::htmlEncode()`

* Update ArrayHelperTest.php

* Update ArrayHelperTest.php

* Update ArrayHelperTest.php

* Update CHANGELOG.md

* test workflow fix
2022-05-22 10:20:04 +02:00
6599713d2b Removed merging of parent labels in DynamicModel::attributeLabels() since DynamicModel::attributes() does not merge parent attributes. Cleaned up DynamicModel documentation. (#19394) 2022-05-16 23:19:50 +04:00
bf058f4d23 Simple optimization and PHPDoc type fixes in yii\helpers\BaseArrayHelper (#19387) 2022-05-16 23:14:43 +04:00
d5fee8aa05 Add Uzbek (cyrillic) language in messages config (#19383) 2022-05-05 10:07:29 +03:00
c4c1a66752 Add Uzbek cyrillic messages translation (#19382) 2022-05-05 10:07:03 +03:00
2d6f1d5e05 Fix #19380: Fix PHP 8.1 passing non string to trim() in yii\db\Query 2022-05-04 16:29:14 +03:00
4768cb0f1d Fix returning type of yii\base\Widget::run() (#19378) 2022-05-04 10:34:41 +03:00
4264082499 Update link in Yii::powered() (#19376) 2022-05-03 19:28:55 +03:00
e234e48f3c Fix #19368: Fix PHP 8.1 error when $fileMimeType is null in yii\validators\FileValidator::validateMimeType() 2022-04-27 11:01:01 +03:00
a173488711 Optimize BaseArrayHelper::isIndexed() (#19363) 2022-04-24 10:46:36 +02:00
9eb268a52c Add guide section for filtering REST collection. (#19357)
* Add guide section for filtering REST collection.

* Update docs/guide/rest-filtering-collections.md

Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>

* Update docs/guide/rest-filtering-collections.md

Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>

Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>
2022-04-20 09:11:20 +02:00
0f004db99b Fixed issue when trying to check if a multidimensional array is dirty… (#19272)
* Fixed issue when trying to check if a multidimensional array is dirty attribute or not

* fixed issue in logic and added test

* Updated test to only support PHP 7 and above

* Code refactoring

* Updated Test Cases

* Update framework/helpers/BaseArrayHelper.php

Co-authored-by: Bizley <pawel@positive.codes>

* Added to CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Maher Al Ghoul <maher.gh@opensooq.com>
Co-authored-by: Bizley <pawel@positive.codes>
Co-authored-by: Maher Al Ghoul <maher@rufoof.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Maher Al Ghoul <Maher.AlGhoul@opensooq.com>
2022-04-18 13:41:20 +02:00
8046d3a50f Fix #19290: Fix Request::getHostInfo() doesn’t return the port if a Host header is used 2022-04-16 00:37:55 +04:00
4f1ffd2c98 Fix generation of docs on the site (#19353) 2022-04-15 16:49:11 +04:00
ad1fd84f39 Fix PHP 8.1 Empty header DataColumn (#19350)
* Fix PHP 8.1 Empty header DataColumn

#19349

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2022-04-13 17:58:28 +02:00
0741c4cab0 Allow null values for date formatters in Formatter (#19348) 2022-04-11 12:11:33 +02:00
94dfccd6fa 19324 dropdownlist selection for boolean attributes (#19331)
* Fix #19324 by allowing for direct comparison

* Invert meaning of strict

* Remove WinterSilence from authors list

* Fix improper implementation of strict checks

* Add test for renderSelectOptions

* Partially revert 'Fix improper implementation of strict checks'

* Add additional tests for strict

* Revert 'Fix improper implementation of strict checks'

* Add failing test for demonstration

* Comment out demonstration test

* Update framework/CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>

Co-authored-by: Bizley <pawel@positive.codes>
2022-04-11 09:44:48 +02:00
a90017294c Fix #19312: Fix PHP 8.1 error when passing null to yii\helpers\BaseInflector 2022-04-08 17:36:08 +04:00
4e1a37d567 Resolve #19327 (#19336)
* Resolve #19327

* cast from extracted column

* Update CHANGELOG

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2022-04-08 08:05:47 +02:00
06e5472753 Fix #19256: Pass missed $view to user's callback in yii\validators\InlineValidator::clientValidateAttribute() 2022-04-08 01:20:28 +04:00
406ec82f94 Fix #19270: Replace deprecated scss converter in yii\web\AssetConverter::$commands 2022-04-08 01:18:36 +04:00
1382aea4a8 Fix #19295: Added alias text/rtf for mime-type application/rtf 2022-04-07 00:14:00 +04:00
9f6d24d939 Fix #19328: Passing null to parameter #1 ($string) of type string is deprecated in yii\db\oci\Schema
Co-authored-by: Kevin Desmettre <kdesmettre@oph74.fr>
2022-04-06 23:58:14 +04:00
14c42b7bb5 Added jfif to mimeTypes.php (#19338)
* Added `jfif` to mimeTypes.php

Added the 'image/jpeg' mime type for `.jfif` files (https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format)

* Update MimeTest.php

Added 'jfif' extension to MimeTest
2022-04-05 08:28:41 +02:00
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
e08222bebd Fix #19254: Support specifying custom characters for yii.validation.trim() and replace deprecated jQuery.trim() 2022-03-31 00:46:08 +04:00