24 Commits

Author SHA1 Message Date
a6257d8f46 Fix #20226: Revert all PR for "Data providers perform unnecessary COUNT queries that negatively affect performance" 2024-07-12 08:48:58 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
90c0eb02d1 Fix #20055: Fix Response header X-Pagination-Total-Count is always 0 2024-05-16 12:03:03 +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
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
a19dd48b79 Fix #7622: Allow yii\data\ArrayDataProvider to control the sort flags for sortModels through yii\data\Sort::sortFlags property 2020-02-04 11:56:35 +03:00
8cc74f5c57 Fixes #17156: Fixes PHP 7.2 warning when a data provider has no data as a parameter for a GridView 2019-02-28 11:02:08 +03:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
217d50e4ff improved PHPdoc and @since annotations 2016-07-11 12:58:43 +02:00
2a05754ede Fix link in documentation (#11861) [skip ci] 2016-07-02 01:42:08 +03:00
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
7f3511a908 Update ArrayDataProvider.php
Update DataColumn.php

Update CHANGELOG.md
2016-05-03 14:51:22 +03:00
bb4bed4833 Fixed yii\data\ArrayDataProvider::getKeys() return wrong when yii\data\ArrayDataProvider::$allModels contain integer key 2015-04-14 17:07:16 +03:00
54e35baa1b Fixes #7074: yii\data\ArrayDataProvider did not correctly handle the case Pagination::pageSize = 0 2015-01-29 13:27:47 -05:00
b5f921ee81 Update ArrayDataProvider.php
ensure syntax highlighting
2014-10-13 21:45:23 +02:00
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
27659d1776 fixed FileHelper private method static call 2014-03-26 17:51:52 +01: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
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00