20015 Commits

Author SHA1 Message Date
e39e744b45 Fix #19384: Normalize setBodyParams() and getBodyParam() in yii\web\Request 2022-05-23 10:39:33 +04:00
41f7986922 Add test case for Cache::getValue() with non existent key (#19396) 2022-05-22 14:04:16 +03:00
98e93083ed Update DeadLockTest::testDeadlockException() (#19385) 2022-05-22 12:52:56 +03: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
f458263d93 fix import UnauthorizedHttpException (#19404) 2022-05-22 10:17:54 +02:00
92f2cd9aa4 Fix scrutinizer (#19395) 2022-05-21 23:31:25 +03: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
2af75cb5e7 Fix typo in rest-filtering-collections.md (#19388) 2022-05-11 00:10:19 +03: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
6b84d5deed Update PHP version is README.md (#19375) 2022-05-02 21:34:59 +03:00
268e8156bd Fix typo in pipeline config (#19372) 2022-04-28 11:31:45 +03:00
9de6d596d8 Fix scrutinizer ci and remove code coverage github actions. (#19371) 2022-04-27 21:43:20 +03:00
4c32d90d4d Update workflows (#19370) 2022-04-27 19:09:49 +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
706765d4aa add rest-quick-start (#19364) 2022-04-24 13:30:33 +02: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
67795ca73f Fix guide generation errors (#19356) 2022-04-19 10:59:46 +03: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
60e9fc3f6e Fix code block in rest resource docs (#19346)
Co-authored-by: Bizley <pawel@positive.codes>
2022-04-11 10:07:54 +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
16a684e8e6 Fix broken code block (#19344) 2022-04-10 13:31:35 +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
def396f7d9 Fix broken code block inside note block (#19342) 2022-04-08 15:53:16 +04:00
e352649a75 Improve DataFilterTest (#19341) 2022-04-08 13:48:17 +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
1789b28d76 Extend examples in guide/input-tabular-input.md (#19278) 2022-04-07 00:05:17 +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
10f604582c Fix autoload sections in composer.json (#19337)
Move `yii\cs\`  into `autoload-dev` and add  `test` and `build` namespaces
2022-04-06 23:43:31 +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
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
4cfdfc011f Add yii\web\UploadedFile::$fullPath (#19308)
* Add `yii\web\UploadedFile::$fullPath`

`$_FILES['userfile']['full_path']` Available as of PHP 8.1.

Updates related methods `loadFilesRecursive()` and `loadFilesRecursive()`

* Update UploadedFile.php

* Update UploadedFile.php

* Update UploadedFile.php

* Update CHANGELOG.md

* Apply suggestions from code review

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

* Update UploadedFile.php

Co-authored-by: Bizley <pawel@positive.codes>
2022-03-30 09:38:00 +02:00
f6d328335e GroupUrlRule slash in prefix (#19330)
* Bring back slash

* changelog

* group url rule test
2022-03-29 21:37:25 +02:00
091b055ce9 Fix yii\caching\Dependency::generateReusableHash() (#19303)
* Fix yii\caching\Dependency::generateReusableHash()

* Update DbQueryDependencyTest.php

* Update CHANGELOG.md

* Update Dependency.php

* Update framework/caching/Dependency.php

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

* Update comment Dependency::generateReusableHash()

Co-authored-by: Bizley <pawel@positive.codes>
2022-03-29 08:22:34 +02:00
2874e070f3 Fix #19322: Revert force setting value to empty string in case it's null in yii\validators\FilterValidator::validateAttribute() 2022-03-24 17:50:00 +04:00
7cc45f75f5 Add TrimValidator (#19304)
* Add TrimValidator

* Update Validator.php

* Update Validator.php

* Update TrimValidator.php

* Update TrimValidator.php

* Update TrimValidator.php

* Update TrimValidator.php

* Update CHANGELOG.md

* Update Validator.php
2022-03-22 11:16:47 +01:00