1557 Commits

Author SHA1 Message Date
c82da8dc82 Add visibility for all class elements (#20557) 2025-10-02 01:27:23 +03:00
33ed3218bf Fix #20548: Fix PHP 8.5 null array offset deprecation warnings 2025-09-30 01:31:21 +03:00
54fb1cc7af Remove unused imports (#20554) 2025-09-30 01:22:41 +03:00
70eb2c1c15 Fix #20515: Fix @param annotations in BetweenColumnsCondition, InCondition and LikeCondition 2025-09-08 13:08:53 +03:00
04d0c0dd5f Fix #20516: Fix @template annotations in ActiveRecord 2025-09-08 13:08:02 +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
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
005d9f21fb Fix #20479: Fix issue with MSSQL related to char and nchar 2025-08-26 22:05:11 +03:00
1ce35f98b0 Fix #20495: Fix behavior when resetting sequence in QueryBuilder for MSSQL 2025-08-26 22:04:27 +03:00
699d7a7912 Fix #20432: Fix PHPStan/Psalm annotations for ActiveQuery::asArray 2025-07-09 18:46:20 +03:00
0873d0745b Fix #20434: Added PHPStan/Psalm annotations for hasMany and hasOne methods 2025-07-08 11:35:12 +03:00
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
2303d72238 Fix #20385: Fixed the memory leak issue when using Query::exists() with MySQL 2025-05-28 01:18:47 +03:00
2b6f0be715 Added and fixed Psalm/PHPStan annotations for ActiveRecord and ActiveQuery (#20363) 2025-04-28 22:27:06 +03:00
6dbdeb9091 save (#20361) 2025-04-27 12:12:12 +03:00
7037fd46ab Fix #20355: Fix SQL syntax for resetting sequence in QueryBuilder for MSSQL 2025-04-19 23:15:28 +03:00
c447d95ba7 Correct docblock return type for DataReader::read() method (#20338)
The method's docblock incorrectly stated it always returned an array,
while in practice it can also return `false`.

This change updates the `@return` annotation to correctly specify `array|false`.
2025-03-14 14:40:21 +03:00
e38f62e55b Fix #20329: pgsql: Column Schema doesn't recognize PG type cast 2025-02-27 17:33:35 +03:00
06bd683d21 Add generic types for ActiveRecord and Container (#20325)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2025-02-21 19:00:43 +03:00
1c191eac90 Update MetaStorm plugin config (#20324) 2025-02-18 09:28:18 +03:00
fd866da415 Basic setup for MetaStorm (#20307) 2025-01-13 00:44:34 +03:00
80f2545cf1 Fixes CS (#20288) 2024-12-06 09:11:14 +03:00
883e1d81fc update links (#20219) 2024-06-30 20:45:04 +03:00
8dacd2aad7 Fix #20195: Do not set non abstract values into ColumnSchema->type on MSSQL version less then 2017 2024-06-18 12:30:42 +03:00
048eef42cd Fix #20191: Fix ActiveRecord::getDirtyAttributes() for JSON columns with multi-dimensional array values 2024-06-08 10:31:26 +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
42e6524413 Fix tests addCheck(), dropCheck() MariaDB. (#20174) 2024-05-30 18:54:15 +03:00
5ebc175768 Fix: #20171: Support JSON columns for MariaDB 10.4 or higher 2024-05-29 15:01:48 +03:00
2d2e141e3e Minor improvents. 2024-05-18 16:54:18 -04:00
14e2631fdf Normalize column names. 2024-05-18 14:03:39 -04:00
bd73df5dcf Fix MySQL version check for check constraints. 2024-05-18 13:39:02 -04:00
4996fd3d91 Add draft loadTableChecks() method, and add tests. 2024-05-18 13:35:03 -04:00
f3f2f2bb08 Apply sugestion rob006. 2024-05-18 11:43:02 -04:00
e7b6330dbb Merge branch 'master' into master 2024-05-16 15:04:21 +03:00
a733e8a6b2 Add a throws comment to BaseActiveRecord save 2024-04-14 01:30:18 +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
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
283499cf61 Fix #20122: Fixed parsing of boolean keywords (e.g. used in SQLite) in \yii\db\ColumnSchema::typecast() 2024-03-03 11:32:21 +03:00
dffb4c7529 Fix version in since tag 2023-12-25 12:20:09 +03:00
0263c19833 Revert 20045. 2023-11-02 08:28:05 -03:00
4a46f6763e Merge branch 'master' into fix-type-boolean-mysql 2023-10-25 14:38:13 -03:00
045996ed4b Merge branch 'master' into fix-type-boolean-mysql 2023-10-25 13:54:28 -03:00
7005d2775b Fix #20042: Add empty array check to ActiveQueryTrait::findWith() 2023-10-25 19:53:45 +03:00
9d3c71d6a7 Fix #20040: Fix type boolean in MSSQL 2023-10-25 19:47:46 +03:00
4b7669cf08 Fix boolean type MYSQL. 2023-10-25 08:37:18 -03:00
02ed808056 New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor(). 2023-10-13 13:22:48 +03:00