-
-
Notifications
You must be signed in to change notification settings - Fork 45
Explicitly mark readonly properties #1158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5b37e4a
248cfcd
2187c7c
4514dd8
bff97d1
890f980
55a84e0
d470ee0
339f90d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -77,11 +77,11 @@ abstract class AbstractQueryBuilder implements QueryBuilderInterface | |||||
| protected array $typeMap = []; | ||||||
|
|
||||||
| public function __construct( | ||||||
| private ConnectionInterface $db, | ||||||
| private AbstractDDLQueryBuilder $ddlBuilder, | ||||||
| private readonly ConnectionInterface $db, | ||||||
| private readonly AbstractDDLQueryBuilder $ddlBuilder, | ||||||
| private AbstractDMLQueryBuilder $dmlBuilder, | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property is not readonly. See |
||||||
| private AbstractDQLQueryBuilder $dqlBuilder, | ||||||
| private AbstractColumnDefinitionBuilder $columnDefinitionBuilder, | ||||||
| private readonly AbstractDQLQueryBuilder $dqlBuilder, | ||||||
| private readonly AbstractColumnDefinitionBuilder $columnDefinitionBuilder, | ||||||
| ) {} | ||||||
|
|
||||||
| public function addCheck(string $table, string $name, string $expression): string | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -53,7 +53,10 @@ abstract class AbstractSchema implements SchemaInterface | |||||
| /** @var (Check[]|DefaultValue[]|ForeignKey[]|Index|Index[]|TableSchemaInterface|null)[][] */ | ||||||
| private array $tableMetadata = []; | ||||||
|
|
||||||
| public function __construct(protected ConnectionInterface $db, private SchemaCache $schemaCache) {} | ||||||
| public function __construct( | ||||||
| protected ConnectionInterface $db, | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This breaks BC. |
||||||
| private readonly SchemaCache $schemaCache, | ||||||
| ) {} | ||||||
|
|
||||||
| public function getDefaultSchema(): string | ||||||
| { | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks BC.