225 Commits

Author SHA1 Message Date
95b0e6010e Fix #19683: Updated framework\mimeType.php to the actual value. Fix typo in build/controllers/MimeTypeController.php 2023-02-11 19:21:51 +03:00
7ed855ccae Add FileHelper test for a negative except, clarify docs (#19723) 2022-12-30 00:37:32 +04:00
1f0f701bc3 Fix #19689: Remove empty elements from the class array in yii\helpers\BaseHtml::renderTagAttributes() to prevent unwanted spaces 2022-11-28 23:57:25 +03:00
64adbd73c6 Fix #19534: Fix yii\helpers\BaseHtml::renderSelectOptions() to properly render boolean selection 2022-11-17 15:49:09 +03:00
12a2030fbd Fix intl differences in tests (#19679) 2022-11-16 01:37:41 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
9c4c36ee72 Fix #19467: Revert changes in Inflector::camel2words() (#19495)
* Fix #19467: Revert changes in `Inflector::camel2words()` introduced in #19204

* Add UPGRADE note
2022-07-30 14:32:29 +02: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
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
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
1382aea4a8 Fix #19295: Added alias text/rtf for mime-type application/rtf 2022-04-07 00:14:00 +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
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
7fd85d2268 Fix MimeTest 2022-02-11 16:39:05 +03:00
cf1600411c Fix #19204: Support numbers in Inflector::camel2words 2022-02-03 17:23:47 +03:00
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
6fb16bc30f Fix #19098: Add yii\helper\BaseHtml::$normalizeClassAttribute to fix duplicate classes 2021-12-27 21:44:48 +03:00
d27fb96409 StringHelper::dirname() fixed for trailing slash (#18965)
* StringHelper::dirname() fixed for trailing slash

* StringHelper::dirname() fix for PHP <7 versions

* Update CHANGELOG.md

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-10-24 10:43:54 +02:00
0041f034fd [doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net

* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
1d7f9d8d2d Fix #18898: Fix yii\helpers\Inflector::camel2words() to work with words ending with 0 2021-09-23 17:24:17 +03:00
59eb9a3395 Fixed ArrayHelper::toArray for DateTime (#18880)
* Fixed ArrayHelper::toArray() for DateTime object

* Updated README.md for #18880 (Fixed ArrayHelper::toArray() for DateTime object)

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-09-14 15:30:10 +02:00
ffe7904d80 Minor tests cleanup (#18811) 2021-09-03 12:41:10 +03:00
0b29ba870e Fix #18762: Added yii\helpers\Json::$keepObjectType and yii\web\JsonResponseFormatter::$keepObjectType in order to avoid changing zero-indexed objects to array in yii\helpers\Json::encode() 2021-08-24 22:30:33 +03:00
63e93ba243 Fix #18832 - Inflector::camel2words() adding extra spaces (#18833) 2021-08-14 10:43:23 +02:00
c5f8d7df20 Fix #18807: Fix replacing source whitespaces and optimize code of yii\helpers\BaseStringHelper::mb_ucwords() 2021-08-07 17:54:10 +03:00
db39f7c955 Json pretty print (#18726)
* Added pretty print support to Json helper

* Updated documentation for `yii\helpers\Json::$prettyPrint`

* Fixed line ending in \yiiunit\framework\helpers\JsonTest::testPrettyPrint for windows

* Added helper-json.md link in docs/guide/README.md

* Capitalized JSON in descriptions

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-06-27 14:08:41 +02:00
31ca0fcb6f Fix #18676: Added method yii\helpers\BaseFileHelper::changeOwnership() and properties newFileMode/newFileOwnership in yii\console\controllers\BaseMigrateController
Co-authored-by: Bizley <pawel@positive.codes>
2021-05-30 19:26:15 +03:00
4cb2dfef1a Add more tests for helpers (#18675) 2021-05-25 10:28:57 +03:00
2520e50c52 Fix #18653: Added method yii\helpers\BaseHtml::getInputIdByName() 2021-05-13 22:20:42 +03:00
c9889cfd2f Update InflectorTest.php 2021-05-07 01:35:40 +03:00
9c8f653554 Added 'software' and 'hardware' string to BaseInflector $specials. 2021-05-03 14:34:22 +08:00
5ad809e815 Fix #18593: Fix setting the maxlength attribute for Html::activeInput() and Html::activeTextArea() based on length parameter of validator 2021-04-09 20:15:14 +03:00
50831e6f08 Travis leftovers cleanup 2021-03-03 02:21:39 +03:00
71791d790d Fix #18505: Fixed ArrayHelper::get() for ArrayAccess objects with explicitly defined properties
Co-authored-by: Bizley <pawel@positive.codes>
2021-02-04 15:30:56 +03:00
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
02c77da812 Fix #18395: Fix regression in yii\helpers\BaseArrayHelper::filter() (allowing filtering arrays with numeric keys) 2020-12-22 22:35:51 +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
e49a52f3a1 Fix #18210: Allow strict comparison for multi-select inputs 2020-08-05 15:12:42 +03:00
bfc0698b36 Fix #18086: Fix accessing public properties of ArrayAccess via ArrayHelper::getValue() 2020-07-05 18:27:17 +03:00
385fe13d66 Revert #18102 since renaming is technically problematic (#18109) 2020-06-17 13:40:17 +03:00
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
f2d32fab77 Fix #18046: Add test for current ArrayHelper::merge() behavior (#18054) 2020-05-20 18:41:40 +03:00
35fb9c6248 Fix #18026: Fix ArrayHelper::getValue() did not work with ArrayAccess objects 2020-05-18 15:18:09 +03:00
4de66f8205 Fix #16145: Fix Html helper checkboxList(), radioList(), renderSelectOptions(), dropDownList(), listBox() methods to work properly with traversable selection 2020-03-24 12:55:35 +03:00
1d6d0d76c5 Fix HtmlTest to work well with line endings 2020-03-24 12:28:51 +03:00
5939813a8e Fix #17797: Fix for activeListInput options
* Tests

Test for `activeListInput` options.
Also fixed test names for `checkbox` and `radio`.

* activeListInput options

Fix for `activeListInput` options.

* Update BaseHtml.php

* Update HtmlTest.php

* Update CHANGELOG.md

* Update BaseHtml.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-03-12 18:46:38 +03:00
c901608af7 Fix #17863: \yii\helpers\BaseInflector::slug() doesn't work with an empty string as a replacement argument 2020-02-19 03:26:33 +03:00
b794d76056 Fix #17829: yii\helpers\ArrayHelper::filter now correctly filters data when passing a filter with more than 2 levels 2020-01-29 01:03:31 +03:00
beca7b45d3 Fix #17793: Fix inconsistent handling of null data attribute values in yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 21:35:09 +03:00
7e471e3010 Fix #17792: Added support for aria attributes to yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 18:39:00 +03:00