Commit Graph

901 Commits

Author SHA1 Message Date
Maksim Spirkov
6238940918 Fix #20651: Add missing generics in yii\filters namespace 2025-10-29 14:40:33 +03:00
Maksim Spirkov
ed9af8a551 Fix #20645: Add missing generics in yii\helpers and yii\test namespaces. Fix PHPDoc annotations in ArrayAccessTrait 2025-10-28 14:58:58 +03:00
Maksim Spirkov
dd4c091e66 Fix #20634: Fix PHPDoc annotations in yii\db namespace. Add PHPStan/Psalm annotations for yii\db\SqlTokenizer::startsWithAnyLongest() 2025-10-25 22:19:58 +03:00
Maksim Spirkov
33bcf7fffa Fix PHPStan errors (#20609) 2025-10-14 19:30:00 +03:00
Maksim Spirkov
287d0fa074 Fix PHPStan errors (#20603) 2025-10-14 12:38:07 +03:00
Maksim Spirkov
c82da8dc82 Add visibility for all class elements (#20557) 2025-10-02 01:27:23 +03:00
Maksim Spirkov
4774464159 Fix #20525: Add @template annotations for all actions 2025-09-15 20:38:24 +03:00
Maksim Spirkov
53256fdd24 Fix #20513: Fix code examples in PHPDoc 2025-09-06 00:22:56 +03:00
Maksim Spirkov
f914cda51e Remove invalid @property annotations and fix property descriptions (#20510) 2025-09-05 00:33:39 +03:00
Maksim Spirkov
f39a2ec1f9 Remove invalid and unnecessary PHPDoc annotations (#20507) 2025-09-03 15:09:14 +03:00
Maksim Spirkov
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
Wilmer Arambula
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
Wilmer Arambula
56c242a35e Fix #20426: Add PHPStan/Psalm annotation for controller property in Action class 2025-06-27 10:32:21 +03:00
Wilmer Arambula
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
Wilmer Arambula
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
Wilmer Arambula
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
Oleg Poludnenko
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
Dmitriy Derepko
1c191eac90 Update MetaStorm plugin config (#20324) 2025-02-18 09:28:18 +03:00
Alexander Makarov
40b1ec3799 release version 2.0.52 2025-02-13 23:02:28 +03:00
pamparam83
a05f60beef Add tag case in controller.meta-storm.xml (#20312) 2025-01-16 17:26:30 +03:00
Dmitriy Derepko
fd866da415 Basic setup for MetaStorm (#20307) 2025-01-13 00:44:34 +03:00
Viktor Khokhryakov
5df412df2c Fix #20282: Fix compatibility with PHP 8.4: deprecated constant E_STRICT 2024-12-06 12:31:20 +03:00
Janne
02ef942c53 Added missing underscore in front of private property #20267 2024-10-19 20:48:31 +03:00
Janne
8a0992d5c0 Fixed called class check in Widget::end() when widget configured using callable
See #20267
2024-10-19 20:37:49 +03:00
Tim Kelty
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
Tim Kelty
cc05f92181 Attach behavior via "as foo" with Closure 2024-08-21 23:35:57 -04:00
ErickSkrauch
4b75427011 Fix regression of regression introduced in GHSA-cjcc-p67m-7qxm and #20232 2024-08-14 16:49:26 +02:00
ErickSkrauch
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
ErickSkrauch
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
Alexander Makarov
4b0a02e69c Fix #20147: Fix error handler compatibility with PHP 8.3 (#20228) 2024-07-12 17:48:05 +03:00
Alex
3fa2d61e54 Fix #20175: Fix bad result for pagination when used with GridView 2024-06-08 10:29:40 +03:00
rhertogh
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
Alexander Makarov
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
Stefano D. Mtangoo
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
Ayesh Karunaratne
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
Wilmer Arambula
ce813e5060 Raise version min PHP 7.3. 2024-03-20 17:27:20 -03:00
Razvan Grigore
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
Robert Korulczyk
2141f9abdf Improve performance of handling ErrorHandler::$memoryReserveSize 2023-10-23 20:49:27 +02:00
Andrii Dembitskyi
b073daa8f0 Fix typo in description codesnippet (#19873) 2023-06-30 15:58:04 +02:00
Michaël Arnauts
4e7aac710f Fix #19813: Fix yii\base\DynamicModel validation with validators that reference missing attributes 2023-05-04 15:37:45 +03:00
Alexander Makarov
68b473679a release version 2.0.47 2022-11-18 20:21:58 +04:00