4859c8fcae
Fix #20309 : Add custom attributes support to style tags
2025-02-14 09:59:48 +03:00
f94017ce4c
Fix #20306 : Add new yii\helpers\ArrayHelper::flatten() method
2025-01-06 17:53:58 +03:00
e4d5d73490
Fix #20268 : Minor optimisation in \yii\helpers\BaseArrayHelper::map
2024-10-27 13:37:09 +03:00
76150c5403
Revert "Fix #20198 : Boolean values of the value HTML attribute are now converted to integer values"
...
This reverts commit 0e50cee88fe7817cd23c764f16a2b1f8feb0694f.
2024-06-19 21:04:17 +03:00
0e50cee88f
Fix #20198 : Boolean values of the value HTML attribute are now converted to integer values
2024-06-17 18:57:37 +03:00
bf3ada13fc
Fix #20087 : Add custom attributes to script tags
2024-04-03 16:18:16 +03:00
3357e64ee6
Remove test of data providers, and replace expectNotToPerformAssertions() to assertTrue(true) for code coverage.
2024-03-21 09:56:54 -03:00
d852773cae
Revert use @requires.
2024-03-21 08:31:03 -03:00
ce813e5060
Raise version min PHP 7.3.
2024-03-20 17:27:20 -03:00
c9c5c61f76
Fix error summary always visible with CSP header ( #19691 )
2024-01-18 16:30:22 +01:00
005a9c7265
#17191 : improved ensureScheme tests readability
2023-12-03 16:21:45 +01:00
d45c1cc6f9
#17191 : improved ensureScheme tests readability
2023-12-03 16:18:04 +01:00
d3e4df762d
17191: refacor tests using dataprovider
2023-12-03 16:00:30 +01:00
fc582a2cfd
17191: fixed isRelative method
2023-12-03 15:07:25 +01:00
26032ad686
refactor findBetween method and add other tests
2023-10-30 13:50:08 +03:30
caa2029ec7
implement findBetween method to StringHelper
2023-10-28 22:20:37 +03:30
e2773e4524
Fix #20032 : Added mask method for string masking with multibyte support
2023-10-25 19:47:03 +03:00
30b491dfdf
removed MIME file tests ( #19951 )
...
* removed MIME file tests
see also 0f7248c7a2 (commitcomment-127223170)
* added CHANGELOG line
2023-09-13 13:23:21 +02:00
e8c4a7e56e
added PHP version check, fixed #19925 ( #19936 )
...
* added PHP version check, fixed #19925
* added CHANGELOG line
* fixed typo
* fixed typo
---------
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2023-09-04 10:09:49 +02:00
e916e9d564
Fix #19914 : Fixed ArrayHelper::keyExists() and ::remove() functions when the key is a float and the value is null
2023-08-18 15:31:09 +04:00
85171844cf
Fix #19868 : Added whitespace sanitation for tests, due to updates in ICU 72
2023-06-21 18:28:12 +03:00
3cebbdad2e
Fix #19853 : Added support for default value for \yii\helpers\Console::select()
2023-06-09 19:36:21 +03:00
0fcd434c97
Fix #19838 : Added yii\helpers\BaseFileHelper::getExtensionByMimeType() to get the most common extension for a given MIME type
2023-05-19 22:56:47 +03:00
0a811cbd0d
Fix #19837 : Fixed processing of numeric file extensions in yii\build\controllers\MimeTypeController::generateMimeTypesFile()
...
Fixed processing of nummeric file extensions in `\yii\build\controllers\MimeTypeController::generateMimeTypesFile()` and added common image file types (https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#common_image_file_types )
2023-05-19 00:28:48 +03:00
1260d4011b
Fixed \yiiunit\framework\helpers\JsonTest::testEncode() for PHP 5.4 ( #19798 )
...
* Fixed \yiiunit\framework\helpers\JsonTest::testEncode() for PHP 5.4
'\Generator' is only supported since PHP 5.5
* Actually fixed \yiiunit\framework\helpers\JsonTest::testEncode() for PHP 5.4
Turned out the test already failed during file parsing. Now using eval to "hide" the `yield`
2023-03-29 17:37:52 +02:00
5406e5dad3
Fix #19766 : Add support for PHP generators to JSON helper
2023-02-27 14:48:22 +03:00
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