From 75940d44b7e4894de2125f9638c4e12b929d11dd Mon Sep 17 00:00:00 2001 From: Tigrov Date: Fri, 15 Nov 2024 13:55:34 +0700 Subject: [PATCH] Improve column schema classes --- src/Column/SequenceColumnSchemaInterface.php | 4 +++- src/Column/SequenceColumnSchemaTrait.php | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Column/SequenceColumnSchemaInterface.php b/src/Column/SequenceColumnSchemaInterface.php index df228cd5..f7cb54f1 100644 --- a/src/Column/SequenceColumnSchemaInterface.php +++ b/src/Column/SequenceColumnSchemaInterface.php @@ -9,7 +9,9 @@ interface SequenceColumnSchemaInterface extends ColumnSchemaInterface { /** - * @return string|null name of an associated sequence if column is auto incremental. + * Returns name of an associated sequence if column is auto incremental. + * + * @psalm-mutation-free */ public function getSequenceName(): string|null; diff --git a/src/Column/SequenceColumnSchemaTrait.php b/src/Column/SequenceColumnSchemaTrait.php index 3beab37b..20c71240 100644 --- a/src/Column/SequenceColumnSchemaTrait.php +++ b/src/Column/SequenceColumnSchemaTrait.php @@ -11,6 +11,9 @@ trait SequenceColumnSchemaTrait */ private string|null $sequenceName = null; + /** + * @psalm-mutation-free + */ public function getSequenceName(): string|null { return $this->sequenceName;