diff --git a/src/Constant/GettypeResult.php b/src/Constant/GettypeResult.php index 1efd34918..ad5ec397c 100644 --- a/src/Constant/GettypeResult.php +++ b/src/Constant/GettypeResult.php @@ -9,7 +9,7 @@ * * @link https://www.php.net/manual/en/function.gettype.php */ -class GettypeResult +final class GettypeResult { /** * Define the php type as `array`. diff --git a/src/Constant/PhpType.php b/src/Constant/PhpType.php index 560da3725..3825d2c7a 100644 --- a/src/Constant/PhpType.php +++ b/src/Constant/PhpType.php @@ -13,7 +13,7 @@ * @see ColumnSchemaInterface::getPhpType() * @see https://www.php.net/manual/en/language.types.type-system.php */ -class PhpType +final class PhpType { /** * Define the php type as `array`. diff --git a/src/Schema/Column/ColumnSchemaInterface.php b/src/Schema/Column/ColumnSchemaInterface.php index 8a98cfd64..b1d9e2af5 100644 --- a/src/Schema/Column/ColumnSchemaInterface.php +++ b/src/Schema/Column/ColumnSchemaInterface.php @@ -184,6 +184,7 @@ public function getPrecision(): int|null; * Returns the PHP type of the column. Used for generating properties of a related model class. * * @return string The PHP type of the column. + * @psalm-return PhpType::* * * @see PhpType */