Conversation
Member
vjik
commented
Jan 30, 2026
| Q | A |
|---|---|
| Is bugfix? | ❌ |
| New feature? | ❌ |
| Breaks BC? | ❌ |
| Tests pass? | ✔️ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1158 +/- ##
=========================================
Coverage 98.63% 98.63%
Complexity 1654 1654
=========================================
Files 120 120
Lines 4308 4313 +5
=========================================
+ Hits 4249 4254 +5
Misses 59 59 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Tigrov
reviewed
Jan 30, 2026
Member
Tigrov
left a comment
There was a problem hiding this comment.
What about other properties in other classes? They also can be marked as readonly.
| * A transaction is a set of SQL statements that must either all succeed or all fail. | ||
| * | ||
| * It's usually created by calling {@see \Yiisoft\Db\Connection\AbstractConnectionAbstractConnection::beginTransaction()}. | ||
| * It's usually created by calling {@see AbstractConnectionAbstractConnection::beginTransaction()}. |
Member
There was a problem hiding this comment.
Suggested change
| * It's usually created by calling {@see AbstractConnectionAbstractConnection::beginTransaction()}. | |
| * It's usually created by calling {@see ConnectionInterface::beginTransaction()}. |
Co-authored-by: Sergei Tigrov <rrr-r@ya.ru>
$psrCache property in SchemaCache as readonly
Member
Author
Done |
Tigrov
reviewed
Feb 2, 2026
| @@ -113,7 +113,7 @@ abstract class AbstractDQLQueryBuilder implements DQLQueryBuilderInterface | |||
|
|
|||
| public function __construct( | |||
| protected QueryBuilderInterface $queryBuilder, | |||
Member
There was a problem hiding this comment.
Suggested change
| protected QueryBuilderInterface $queryBuilder, | |
| protected readonly QueryBuilderInterface $queryBuilder, |
| private AbstractDDLQueryBuilder $ddlBuilder, | ||
| private readonly ConnectionInterface $db, | ||
| private readonly AbstractDDLQueryBuilder $ddlBuilder, | ||
| private AbstractDMLQueryBuilder $dmlBuilder, |
Member
There was a problem hiding this comment.
Suggested change
| private AbstractDMLQueryBuilder $dmlBuilder, | |
| private readonly AbstractDMLQueryBuilder $dmlBuilder, |
Member
Author
There was a problem hiding this comment.
This property is not readonly. See withTypecasting() method.
|
|
||
| public function __construct(protected ConnectionInterface $db, private SchemaCache $schemaCache) {} | ||
| public function __construct( | ||
| protected ConnectionInterface $db, |
Member
There was a problem hiding this comment.
Suggested change
| protected ConnectionInterface $db, | |
| protected readonly ConnectionInterface $db, |
Tigrov
approved these changes
Feb 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.