20 Commits

Author SHA1 Message Date
993f2aef28 Fixes #11275: Added possibility of unset or force replace former value in ArrayHelper::merge() 2016-08-03 22:49:49 +03:00
30bb9bd7c8 Fixes #11462: Added support of filtering rules to yii\log\Target::$logVar, added \yii\helpers\BaseArrayHelper::filter() method 2016-07-03 01:56:05 +03:00
b45e5fbaf2 Unit test for #11549 2016-06-19 15:22:12 +03:00
239d7814eb Fixes #11739: Fixed ArrayHelper::index() losing precision for float keys 2016-06-19 15:00:46 +03:00
b211e6bf69 added failing test for #11686
test BaseArrayHelper::isIn() in strict mode
2016-06-09 13:08:26 +02:00
c6d04644d3 passing properties to recursive call if properties of top object are not specified
fixes #7717
close #10960
2016-04-28 02:34:10 +02:00
976b9fe357 Updated ArrayHelperTest to test exceptions of ArrayHelper::isIn() and ::isSubset() 2016-03-10 16:39:21 +02:00
b641cb7dea Updated ArrayHelperTest::testIsTraversable() 2016-02-25 12:02:48 +02:00
16a6af5fa8 Add helper function for checking if an object is an array-like object.
Added support for traversable objects in `BaseHtml` and `ArrayHelper`
2016-02-24 23:49:05 +02:00
d66659e329 ArrayHelperTest - groupBy tests moved to a separate method 2016-02-24 23:08:59 +02:00
ef8b0a2be0 parameter dimensions in ArrayHelper::index 2016-02-15 17:47:44 +10:00
0f30b0843b added test for SORT_DESC
for #8348 and #10607
2016-02-07 20:50:25 +01:00
78de315794 Fixed processing nested objects multisort in BaseArrayHelper
fixes #8348
close #10607
2016-02-07 20:20:32 +01:00
ed23b97baf #10574 - Fix for BaseArrayHelper to work with invalid characters in proper way 2016-01-16 09:37:36 +03:00
f6dcb290ed reverted c00b97a/#9915, this is expected behavior
When accessing non-existing properties it is expected behavior to throw an error.
This is the case in all other places.

It is also not reliably possible to determine whether a property exists beforehand.
it is not sufficient to call `property_exists()` as it may be available via `__get()`.

Instead of `property_exists()` or `isset()` it should call `$object->canGetProperty()` but this is not
guaranteed to be implemented and therefor doing such a check will not work in 2.0.x.

calling isset() may break code that works through __get() but has not implemented __isset() properly.

We may discuss this for 2.1 again but I am in favor of keeping it as is.
2016-01-15 16:19:24 +01:00
d1812d2081 fixed arrayhelper test, renamed test methods according to FW change 2015-11-22 17:07:48 +01:00
22d9997281 Implemented support of traversable objects in RangeValidator::ranges, added ArrayHelper::in() and ArrayHelper::subset() 2015-11-18 16:41:56 +02:00
c00b97a12c Fixes #9915: yii\helpers\ArrayHelper::getValue() was erroring instead of returning null for non-existing object properties 2015-10-14 12:56:59 +03:00
8caaba0168 Allow specification of the $key as an array at yii\helpers\ArrayHelper::getValue() 2015-04-20 15:52:32 +03:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00