19 Commits

Author SHA1 Message Date
87d960b85b Fix #20371: Fix "Typed property must not be accessed before initialization" when calling toArray() on a model with typed properties without default value 2025-05-04 12:42:46 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
fb35f20f6d Fix #18435: Change the check order whether an object is an implementation of Arrayable or JsonSerializable in \yii\base\ArrayableTrait::toArray() and \yii\rest\Serializer::serialize() 2020-12-21 11:08:09 +03:00
15327fe969 Fix typo in ArrayableTrait.php
embeded -> embedded
2020-12-17 23:17:12 +03:00
6e9764b467 Added support of JsonSerializable interface to ArrayableTrait (#17888) 2020-02-22 12:34:27 +03:00
596e5b1283 Fixed escaping in arrayable trait (#15669) 2018-02-19 00:31:41 +03:00
a1937544e0 Code style adjustments 2018-02-18 02:41:49 +03:00
f1277d6d21 Fixes #6844: yii\base\ArrayableTrait::toArray() now allows recursive $fields and $expand 2018-01-15 18:15:32 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
68c30c1034 Replace aliases of functions 2015-06-29 22:59:22 +03:00
e3ca5a8168 Reverted/fixed some incorrect changes. 2014-09-05 20:23:11 -04:00
73045c83b9 Simplified ArrayTrait::fields() default implementation since it works fine w/ just field names as values 2014-09-06 01:34:16 +04:00
3af08064b8 Fixes #4911: Changed callback signature used in yii\base\ArrayableTrait::fields() from function ($field, $model) { to function ($model, $field) { 2014-09-04 00:35:23 +04:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
fad635440b Fixes #2655: Arrayable and ArrayableTrait are incompatible for some PHP versions. 2014-03-07 19:08:27 -05:00
3f42d5826a REST wip. 2014-03-05 13:29:24 -05:00