Alexander Makarov
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
3 years ago
Alexander Makarov
655786b7ed
release version 2.0.44
3 years ago
Anton
6fb16bc30f
Fix #19098 : Add `yii\helper\BaseHtml::$normalizeClassAttribute` to fix duplicate classes
3 years ago
Alexey Rogachev
552593ca3b
Prepare for new apidoc (part 2) ( #19010 )
...
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
3 years ago
Alexey Rogachev
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
3 years ago
Marco van 't Wout
53477e8ad9
Correct note about html encoded items in radio/checkboxlist ( #19007 )
3 years ago
Aleksandr Bogatikov
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>
3 years ago
Bizley
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
3 years ago
Anton
0181a49bb4
Fix phpdoc in BaseFileHelper ( #18928 )
3 years ago
Alexander Gubarev
e3028c524d
Fix #18899 : Replace usages of `strpos` with `strncmp` and remove redundant usage of `array_merge` and `array_values`
3 years ago
Michaël Arnauts
1d7f9d8d2d
Fix #18898 : Fix `yii\helpers\Inflector::camel2words()` to work with words ending with 0
3 years ago
rhertogh
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>
3 years ago
Anton
932806b97d
Fix #18812 : Added error messages and optimized "error" methods in `yii\helpers\BaseJson`
3 years ago
Jaak Tamre
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()`
3 years ago
Brandon Kelly
63e93ba243
Fix #18832 - Inflector::camel2words() adding extra spaces ( #18833 )
3 years ago
Anton
c5f8d7df20
Fix #18807 : Fix replacing source whitespaces and optimize code of `yii\helpers\BaseStringHelper::mb_ucwords()`
3 years ago
Anton
9607d0eb52
Small fixes in `yii\helpers\BaseStringHelper` ( #18795 )
...
- Update and format PhpDoc's
- Format code to be more readable
- Replace similar code to `byteSubstr()`
3 years ago
Bizley
9d56179e9d
Updated asUrl method to not introduce BC break ( #18742 )
3 years ago
rhertogh
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>
3 years ago
Bizley
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
3 years ago
rhertogh
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>
3 years ago
Bizley
4cb2dfef1a
Add more tests for helpers ( #18675 )
3 years ago
Anton
2520e50c52
Fix #18653 : Added method `yii\helpers\BaseHtml::getInputIdByName()`
3 years ago
Alexander Makarov
c76e4dd7c7
Update BaseInflector.php
3 years ago
Kamchybek Jusupov
b41f4dc76f
Remove capitalized versions of rules
3 years ago
Alexander Makarov
9ce0d42daf
Update BaseInflector.php
3 years ago
Kamchybek Jusupov
9c8f653554
Added 'software' and 'hardware' string to BaseInflector $specials.
3 years ago
bscheshirwork
5ad809e815
Fix #18593 : Fix setting the `maxlength` attribute for `Html::activeInput()` and `Html::activeTextArea()` based on `length` parameter of validator
4 years ago
Dmitry Eliseev
4479c66522
Fixed phpdoc types
4 years ago
Alexander Makarov
71791d790d
Fix #18505 : Fixed ArrayHelper::get() for ArrayAccess objects with explicitly defined properties
...
Co-authored-by: Bizley <pawel@positive.codes>
4 years ago
Alexey Lee
59358f4e5b
Fix #18501 : Fix type in ArrayHelper::getColumn() phpdoc
4 years ago
Alexander Makarov
ea8fe8dcc1
release version 2.0.40
4 years ago
Bizley
b8f4958092
Fix #18442 : Fix calls with array access to strings
4 years ago
Bizley
02c77da812
Fix #18395 : Fix regression in `yii\helpers\BaseArrayHelper::filter()` (allowing filtering arrays with numeric keys)
4 years ago
Sergei Predvoditelev
f450760449
Fix typo
4 years ago
Ivan Sidorov
cd36f505b1
Fix #16831 : Fix console Table Widget does not render correctly in combination with ANSI formatting
4 years ago
Alex
e49a52f3a1
Fix #18210 : Allow strict comparison for multi-select inputs
4 years ago
stevekr
f3f5312469
Update BaseHtml and Formatter typehints ( #18185 )
4 years ago
Alexander Makarov
bfc0698b36
Fix #18086 : Fix accessing public properties of `ArrayAccess` via `ArrayHelper::getValue()`
4 years ago
Stepan
2b9323d517
Fix #18047 : Fix colorization markers output in Table.php
4 years ago
Mikk Tendermann
35fb9c6248
Fix #18026 : Fix `ArrayHelper::getValue()` did not work with `ArrayAccess` objects
4 years ago
Alexander Makarov
4de66f8205
Fix #16145 : Fix `Html` helper `checkboxList()`, `radioList()`, `renderSelectOptions()`, `dropDownList()`, `listBox()` methods to work properly with traversable selection
5 years ago
alex-code
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>
5 years ago
Viktor Pikaev
c901608af7
Fix #17863 : `\yii\helpers\BaseInflector::slug()` doesn't work with an empty string as a replacement argument
5 years ago
alex-code
a3c5de3d3b
Fix #17850 : Update to `ReplaceArrayValue` config exception message
5 years ago
rhertogh
b794d76056
Fix #17829 : `yii\helpers\ArrayHelper::filter` now correctly filters data when passing a filter with more than 2 levels
5 years ago
Brandon Kelly
beca7b45d3
Fix #17793 : Fix inconsistent handling of null `data` attribute values in `yii\helpers\BaseHtml::renderTagAttributes()`
5 years ago
Brandon Kelly
7e471e3010
Fix #17792 : Added support for `aria` attributes to `yii\helpers\BaseHtml::renderTagAttributes()`
5 years ago
Alexander Makarov
0ba9c619c7
Fix #17760 : Fix `JSON::encode()` for `\DateTimeInterface` under PHP 7.4
5 years ago
charescape
c02060e241
Code style fix ( #17754 ) [skip ci]
5 years ago