23 Commits

Author SHA1 Message Date
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
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
91c96ff452 Fixes #16839
- Increase frequency of lock tries for `yii\mutex\FileMutex::acquireLock()` when $timeout is provided (rob006)
- Add support for `$timeout` in  `yii\mutex\PgsqlMutex::acquire()`
2018-11-01 01:19:33 +03:00
0ddc3bf58c Fixes #16603: Added yii\mutex\FileMutex::$isWindows for Windows file shares on Unix guest machines 2018-08-05 12:23:38 +03:00
f259eadf7a be clear about timeout in seconds in Mutex
fixes https://github.com/yiisoft/yii2/issues/15030
2017-10-27 09:46:11 +02:00
20302c873a minor 2017-09-13 22:46:11 +03:00
d599568154 Merge branch 'master' into kidol-filemutex
Conflicts:
	framework/mutex/FileMutex.php
2017-09-13 22:05:40 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
85cbe8dbaf Fix race conditions in FileMutex 2016-12-20 15:20:01 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
2716093eda Fixes #12824: Enabled use of yii\mutex\FileMutex on Windows systems 2016-10-24 19:16:24 +03:00
fb72b8801f fixed indentation and code style 2016-10-20 12:37:02 +02:00
9d882e53fe Fixes #12431: Fix bug when lock file was not removed after yii\mutex\FileMutex::release() 2016-09-01 23:50:05 +03:00
ae42a054bb PSR-2 spaces, commas, etc 2015-06-09 00:05:06 +03:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
81d5dd0163 Better Windows detection 2014-07-23 16:08:44 +04:00
9e320dafc6 Doc comments for the 'mutex' classes extended 2014-05-29 11:43:23 +03: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