43 Commits

Author SHA1 Message Date
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
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
4479c66522 Fixed phpdoc types 2021-03-12 23:41:48 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
67728476ec Fix #16418: Fixed yii\data\Pagination::getLinks() to return links to the first and the last pages regardless of the current page 2020-09-21 00:18:52 +03:00
2d15c484ef Fix #17961: Fix pagination pageSizeLimit ignore if set as array with more then 2 elements 2020-05-02 12:03:01 +03:00
26789ed04e Fixes #17093 by reverting #16891 (#17154) 2019-02-23 00:29:20 +03:00
e1623868f9 Fixes #16891: Fixed Pagination::totalCount initialized incorrectly 2019-01-01 13:24:14 -05:00
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
333c4b6b4f Remove unnecessary comparsion (#12833)
* Remove unnecessary comparsion

* Clarify condition
2016-10-27 10:06:39 +02:00
6bffb78391 Added public keyword to example (#12789) [skip ci] 2016-10-20 00:39:57 +03:00
f6094ee519 Update Pagination.php (#11343) 2016-04-13 13:01:46 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
985119350b 2.0.3 release. 2015-03-01 01:22:44 -05:00
6481d13494 Optimized checks order in conditions 2015-02-08 17:56:36 +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
65edc03b49 Fixes #5127. 2014-09-22 08:27:04 -04:00
6230aa7523 minor fix. [skip ci] 2014-09-17 11:19:28 -04:00
a3cfafc761 Fixes #5058: Added $pageSize parameter to Pagination::createUrl() to allow creating URLs with arbitrary page sizes 2014-09-17 11:14:05 -04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02: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
40cb98bb02 updated @property annotations 2014-03-11 16:21:25 +01: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
a8c7d36c02 Finished HATEOAS support. 2014-03-03 14:58:37 -05:00
8e8bbf4ed1 Improved page size and page number validation. 2014-02-27 20:55:48 -05:00
5d0ec52a52 Added support for reading page size from query parameters by Pagination 2014-02-27 20:01:09 -05:00
f2a3dafb21 Added Pagination::getLinks() 2014-02-27 15:38:31 -05:00
43c17d99cc Fixes #2426: Changed URL creation method signatures to be consistent 2014-02-20 20:10:33 +04:00
26cb7b2a3c Renamed fooVar to fooParam for various classes. 2014-02-15 18:18:27 -05:00
262189533a huge amount of documentation link fixes 2014-01-28 17:54:40 +01:00
0d669f5e6b refactored params methods in Request
issue #2043
2014-01-21 15:04:43 +01:00
ed14eaaae5 added docs about # link to sort and paginiation
fixes #2072
2014-01-20 14:33:04 +01:00
86933cd745 Fixed hash doc for pagination 2014-01-20 17:15:40 +04:00
26514419cc Added note about hash to Pagination::$params phpdoc 2014-01-20 16:39:25 +04:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00