895 Commits

Author SHA1 Message Date
4774464159 Fix #20525: Add @template annotations for all actions 2025-09-15 20:38:24 +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
f39a2ec1f9 Remove invalid and unnecessary PHPDoc annotations (#20507) 2025-09-03 15:09:14 +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
f5a071b1f8 Fix #20482: Fix deprecation of ReflectionMethod::setAccessible() in PHP 8.5 2025-08-20 15:31:47 +03:00
58de63993f Fix #20442: Add PHPStan/Psalm annotations for yii\base\Controller methods: runAction, run, render, renderPartial and renderFile 2025-07-11 18:18:27 +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
56c242a35e Fix #20426: Add PHPStan/Psalm annotation for controller property in Action class 2025-06-27 10:32:21 +03:00
f3eefee572 Fix #20348: ErrorHandler::convertExceptionToError() Passing E_USER_ERROR to trigger_error() is deprecated since PHP 8.4 2025-06-25 15:07:46 +03:00
409db4a55c Changing the key type in Controller::actions (#20418) 2025-06-15 23:18:47 +03:00
9fa5d4f46a Fix PHPStan/Psalm annotations for Controller::actions (#20414) 2025-06-14 15:28:24 +03:00
67f5566fb0 Add PHPStan/Psalm annotation for owner property in Behavior class. (#20416) 2025-06-14 15:27:24 +03:00
b47f81ea27 PHPStan/Psalm annotations for base class constructors (#20413) 2025-06-13 22:27:33 +03:00
066552f368 Enhance PHPStan and Psalm annotations for generic owner property in Behavior class. (#20404) 2025-06-10 15:00:25 +03:00
cde05962bf Fix @var tags syntax in base, behaviors and caching folder (#20390) 2025-05-31 09:47:14 +03:00
a2259d0c1d Fix #20373: Fixed the type of the first parameter yii\base\Controller::bindInjectedParams() 2025-05-05 08:27:07 +03:00
f66ee97a45 Fix #20374: Add PHPStan/Psalm annotations for BaseYii, BaseObject, Component, Model, Module and yii\base\Controller 2025-05-05 08:24:57 +03:00
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
1c191eac90 Update MetaStorm plugin config (#20324) 2025-02-18 09:28:18 +03:00
40b1ec3799 release version 2.0.52 2025-02-13 23:02:28 +03:00
a05f60beef Add tag case in controller.meta-storm.xml (#20312) 2025-01-16 17:26:30 +03:00
fd866da415 Basic setup for MetaStorm (#20307) 2025-01-13 00:44:34 +03:00
5df412df2c Fix #20282: Fix compatibility with PHP 8.4: deprecated constant E_STRICT 2024-12-06 12:31:20 +03:00
02ef942c53 Added missing underscore in front of private property #20267 2024-10-19 20:48:31 +03:00
8a0992d5c0 Fixed called class check in Widget::end() when widget configured using callable
See #20267
2024-10-19 20:37:49 +03:00
d9116d3ccd Merge branch 'master' into feature/attach-behaviors-with-closure
# Conflicts:
#	framework/base/Component.php
#	tests/framework/base/ComponentTest.php
2024-09-23 09:39:26 -04:00
cc05f92181 Attach behavior via "as foo" with Closure 2024-08-21 23:35:57 -04:00
4b75427011 Fix regression of regression introduced in GHSA-cjcc-p67m-7qxm and #20232 2024-08-14 16:49:26 +02:00
6abe5bf008 Fix #20232: Fix regression introduced in GHSA-cjcc-p67m-7qxm while attaching behavior defined by __class array key 2024-07-25 11:04:56 +03:00
40fe496eda Fix regression introduced in GHSA-cjcc-p67m-7qxm while attaching behavior defined by __class array key 2024-07-24 23:54:09 +02:00
4b0a02e69c Fix #20147: Fix error handler compatibility with PHP 8.3 (#20228) 2024-07-12 17:48:05 +03:00
3fa2d61e54 Fix #20175: Fix bad result for pagination when used with GridView 2024-06-08 10:29:40 +03:00
855522cc9a Updated JS test packages (#20180)
Updated Node (6 -> 20), NPM (6 -> 10), jsdom (11.11.0 -> 24.1.0), leche (2.2.3 -> 2.3.0), mocha (5.2.0 -> 6.2.3)
2024-06-03 10:07:22 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
628d406bfa Merge pull request from GHSA-cjcc-p67m-7qxm
* Fix: Unsafe Reflection in base Component class

* Fix style for consistency

* add changelog entry

* Fix wrong logic

* Fix exception message

* Update framework/CHANGELOG.md

---------

Co-authored-by: Stefano Mtangoo <stefano@hosannahighertech.co.tz>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2024-05-30 19:15:58 +03:00
a292af13bf [PHP 8.4] Fixes for implicit nullability deprecation (#20133)
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.
Related to #20128.

See:
 - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types)
 - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

Co-authored-by: Wilmer Arambula <terabytesoftw@gmail.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2024-03-26 11:27:58 +03:00
ce813e5060 Raise version min PHP 7.3. 2024-03-20 17:27:20 -03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
2141f9abdf Improve performance of handling ErrorHandler::$memoryReserveSize 2023-10-23 20:49:27 +02:00
b073daa8f0 Fix typo in description codesnippet (#19873) 2023-06-30 15:58:04 +02:00
4e7aac710f Fix #19813: Fix yii\base\DynamicModel validation with validators that reference missing attributes 2023-05-04 15:37:45 +03:00
68b473679a release version 2.0.47 2022-11-18 20:21:58 +04:00
ca1c7efa93 Fix #19546: Reverted #19309 2022-10-26 15:59:25 +04:00
25eed6fe1c Fix phpdoc for yii\web\Controller (#19619) 2022-10-12 08:41:20 +02:00
b99f02eccd Optimize Model::safeAttributes() (#19547) 2022-09-16 10:44:07 +02:00
391a741a63 Fix #15557: Fix empty fields exclusion in safe attributes of yii\base\Model 2022-08-29 10:17:11 +03:00
22614a5b1f release version 2.0.46 2022-08-19 01:18:45 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00