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
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
7f244793f5
Rewrite Model::attributes() ( #19309 )
...
* Optimize Model::attributes()
* Update CHANGELOG.md
2022-03-18 08:09:22 +01:00
a843c61da6
Set the default to an array ( #19306 )
2022-03-16 08:20:03 +01:00
f3473aa4e8
Fix Model::__clone() ( #19291 )
...
* Fix Model::__clone()
Reset validators and errors after cloning to prevent changing cloned model via inner objects of clone like as InlineValidator
* Update CHANGELOG.md
Co-authored-by: Bizley <pawel@positive.codes>
2022-03-09 08:02:51 +01:00
4cb799bf92
Fix @param type ( #19286 )
2022-03-05 10:31:33 +01:00
3203353a38
Remove code duplication in ActiveRecord::attributes()
2022-02-20 01:01:24 +03:00
7b8c29d874
Fix #19243 : Handle finfo_open for tar.xz as application/octet-stream on PHP 8.1
2022-02-19 23:45:20 +03:00
4d90778861
Fix bug #19235 ( #19247 )
...
* Fix bug #19235
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
2022-02-18 09:27:18 +01:00
cb5e180695
Fix PhpDoc of yii\db\pgsql\QueryBuilder::normalizeTableRowData() ( #19234 )
2022-02-15 14:27:59 +03:00
200d8b87d5
prepare for next release
2022-02-11 16:13:11 +03:00
0792736b35
release version 2.0.45
2022-02-11 16:12:40 +03:00
aa61a7b77a
clarification added ( #19220 )
2022-02-10 14:07:39 +01:00
9fbdc9f01b
Fix #18821 : Additional type fixes ( #19217 )
2022-02-09 11:35:20 +03:00
730f0e56b5
Fix #18821 : Allow yii\db\ExpressionInterface as column in yii\db\conditions\InBuilder
2022-02-08 16:51:38 +03:00
71e810c89d
Fix #19130 : Fix DbSession breaks in some case
2022-02-08 16:45:42 +03:00
7a2689e761
Fix #19004 : Container::resolveCallableDependencies() unable to handle union and intersection types
...
Co-authored-by: Sartor <sartor@syneforge.com>
2022-02-07 22:40:13 +03:00
6a36fa82c7
Fix #19047 , fix #19118 : Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php
2022-02-07 01:29:03 +03:00
cf1600411c
Fix #19204 : Support numbers in Inflector::camel2words
2022-02-03 17:23:47 +03:00
60c91eb433
Fix BC introduced in #19188 ( #19194 )
2022-01-27 21:47:37 +03:00
dbb157fd32
Fix #19187 : Fix yii\filters\PageCache to store original headers names instead of normalized ones
2022-01-27 00:52:32 +03:00
0eaa71d46c
Fix #19191 : Change \Exception to \Throwable in BadRequestHttpException and HttpException
2022-01-27 00:51:23 +03:00
e691713ed7
Fix #19171 : Added $pagination and $sort to \yii\rest\IndexAction for easy configuration
2022-01-23 23:26:59 +03:00
437b0d51aa
Fix #19182 : RBAC Migration failed when use oracle with oci8
2022-01-21 19:26:52 +03:00
ebb1d8bc60
Fix #19178 : Fix null value in unserialize for PHP 8.1 ( #19178 )
2022-01-20 11:22:25 +03:00
942e726a8d
Fix #19176 : Add #[\ReturnTypeWillChange] on MSSQL classes ( #19177 )
2022-01-20 10:25:41 +03:00
67ea4cf968
Fix #19148 : Fix undefined array key errors in yii\db\ActiveRelationTrait
2022-01-19 01:47:07 +03:00
f555fce82b
Fix typo ( #19168 )
2022-01-15 08:43:05 +01:00