1050 Commits

Author SHA1 Message Date
de3bd9e592 Fix PHPStan errors (#20526) 2025-09-16 23:02:36 +03:00
7143fdfe3e Fix #20530: Fix notice "Object of class DateTimeImmutable could not be converted to int" in CookieCollection::has 2025-09-16 21:28:41 +03:00
53bdfc3b2c Fix PHPStan errors (#20523) 2025-09-15 23:38:06 +03:00
04202f04f5 Fix #19506: Fix @property annotations in yii\console\widgets\Table, yii\di\Container and yii\web\Session 2025-09-15 20:59:22 +03:00
4774464159 Fix #20525: Add @template annotations for all actions 2025-09-15 20:38:24 +03:00
61f1bd7af9 Fix @var annotations (#20517) 2025-09-08 13:07:30 +03:00
53256fdd24 Fix #20513: Fix code examples in PHPDoc 2025-09-06 00:22:56 +03:00
f914cda51e Remove invalid @property annotations and fix property descriptions (#20510) 2025-09-05 00:33:39 +03:00
06858c1089 Fix #20508: Fix PHPDoc, add PHPStan/Psalm annotations for yii\web\CookieCollection::getIterator. Add missing @property annotation in yii\base\Model 2025-09-02 08:10:56 +03:00
28b6ca7002 Fix #20485: Fix error Cannot unset string offsets in yii\di\Instance:ensure(['__class' => ...], 'some\class\name'), Integrate PHPStan for static analysis 2025-08-26 22:01:33 +03:00
5aabdd3a21 Fix #20447: Fix behavior for yii\web\Controller::bindActionParams around mixed type 2025-08-18 18:06:37 +03:00
f929954eba Fix #20459: Fix return type in RequestParserInterface::parse 2025-07-19 16:51:42 +03:00
6ee5d952ae Fix #20453: Fix PHPStan/Psalm types in yii\web\View 2025-07-15 10:54:19 +03:00
e3a2151efd Replace int|string key types with array-key in PHPStan/Psalm annotations (#20443) 2025-07-11 18:17:54 +03:00
52f28ee2ec Fix #20433: Added PHPStan/Psalm annotations for some controllers methods: beforeAction, afterAction and bindActionParams 2025-07-08 11:33:57 +03:00
8a7f2effa3 release version 2.0.53 2025-06-27 10:42:53 +03:00
4c5a6c5035 Fix #20423: strcmp() Passing null to parameter 2 ($string2) of type string is deprecated 2025-06-19 19:24:22 +03:00
e5af746f13 Merge pull request #20352 from chriscpty/controller-array-fix
Fix behavior for controller actions with union types
2025-06-09 19:50:06 +03:00
ed1f98366b Fix #20400: Add PHPStan/Psalm annotations for yii\web\User 2025-06-08 15:09:52 +03:00
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
fee7a56f04 Merge branch 'master' into controller-array-fix 2025-05-19 12:22:15 +02:00
848a90dea8 array union in controllers
! fix issue when handling parameter with string type, add according test
2025-05-19 12:21:45 +02:00
2b30ec1c9b array union in controllers
- remove needless class_exists call
2025-05-19 11:53:30 +02:00
ab6fd4c9c4 Added PHPStan/Psalm annotations for AssetBundle, AssetManager and View (#20372) 2025-05-04 12:41:36 +03:00
d29998c564 array union in controllers
o cleanup, changelog
2025-04-10 10:39:29 +02:00
a67bfc1274 array union in controllers
! fix yii\web\Controller::bindActionParams behaviour for union types
o some refactoring in the process
2025-04-10 10:34:06 +02:00
03b0b8f299 Fix PHP 8.4 deprecations for setting session.use_trans_sid and session.use_only_cookies 2025-04-04 11:29:08 +03:00
1c191eac90 Update MetaStorm plugin config (#20324) 2025-02-18 09:28:18 +03:00
4859c8fcae Fix #20309: Add custom attributes support to style tags 2025-02-14 09:59:48 +03:00
40b1ec3799 release version 2.0.52 2025-02-13 23:02:28 +03:00
fd866da415 Basic setup for MetaStorm (#20307) 2025-01-13 00:44:34 +03:00
dc05f31100 Fix #20292: Fix \yii\web\Session should not set cookie params, when useCookie is false 2024-12-07 10:19:25 +03:00
65e3369e16 Fix #20140: Fix compatibility with PHP 8.4: calling session_set_save_handler() 2024-12-06 13:34:47 +03:00
36b34b0dc1 fix 'unafe' typo 2024-11-28 12:01:15 +07:00
e6e8311d57 fix phpdoc 2024-11-25 13:58:16 +07:00
9a3797b11f update phpdoc 2024-11-24 17:42:00 +07:00
717b285115 add CSRF validation by custom HTTP header 2024-11-23 18:58:06 +07:00
f96c2c5ef4 Add accidentally removed phpdoc 2024-07-12 16:29:14 +03:00
3fa2d61e54 Fix #20175: Fix bad result for pagination when used with GridView 2024-06-08 10:29:40 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
f7baab16e7 Merge pull request from GHSA-qg5r-95m4-mjgj
* Hotfix: Reflected XSS in Debug mode

* Added entry for the security issue GHSA-qg5r-95m4-mjgj to the CHANGELOG

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2024-05-30 19:29:52 +03:00
af705d9eb2 Fix ci lint. 2024-05-28 11:54:31 -04:00
7a8b9d63ad Fix #20165: Adjust pretty name of closures for PHP 8.4 compatibility 2024-05-27 16:08:59 +03:00
f2ea9be242 Update deprecated isArray() method in Controller.php (#20156) 2024-05-16 13:16:33 +03:00
bf3ada13fc Fix #20087: Add custom attributes to script tags 2024-04-03 16:18:16 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
e02245f18e Fix typo in setCookieParams() documentation 2024-03-06 14:34:00 -05:00
c7b4b1dcdd Get rid of deprecation warnings for trim() [PHP8.3] (#20090) 2024-01-03 10:54:59 +03:00
6fdb805da8 Fix #18469: Fixed Link::serialize(array $links) method in yii\web\Link 2023-11-23 18:09:35 +03:00
73902f0730 Added support for string and DateTimeInterface as Cookie::$expire (#19920)
* Added support for string as Cookie::$expire

* Updated changelog for #19920 (Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|null`)

* Fixed `\yiiunit\framework\web\ResponseTest::parseHeaderCookies()` to overwrite existing cookie.

* Added support for `\DateTimeInterface` in `\yii\web\Cookie::$expire`

* Fixed `\yiiunit\framework\web\ResponseTest::cookiesTestProvider()` for PHP 5.4 and commited missing code for \DateTimeInterface processing in `\yii\web\Response::sendCookies()`
2023-08-15 18:38:10 +02:00