Use more specific return type in PHP DDL column factories
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 7 Feb 2022 11:23:41 +0000 (12:23 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 7 Feb 2022 11:23:41 +0000 (12:23 +0100)
see b0d267facda16a3fcefdef5c2c2740c4cd790b63

wcfsetup/install/files/lib/system/database/table/column/NotNullInt10DatabaseTableColumn.class.php
wcfsetup/install/files/lib/system/database/table/column/NotNullVarchar191DatabaseTableColumn.class.php
wcfsetup/install/files/lib/system/database/table/column/NotNullVarchar255DatabaseTableColumn.class.php

index 86821290f3b0a4bb9133791d4147a51013c5de3a..03d66b3869b4c6ba209d963baac1d61b4138357c 100644 (file)
@@ -13,7 +13,7 @@ namespace wcf\system\database\table\column;
  */
 final class NotNullInt10DatabaseTableColumn
 {
-    public static function create($name): IDatabaseTableColumn
+    public static function create($name): AbstractIntDatabaseTableColumn
     {
         return IntDatabaseTableColumn::create($name)
             ->notNull()
index 4916a3edabbc75603a756da5b5ae4764685f32db..ce022b98e1c1e8b86a7ff0ebfa862be4f939e047 100644 (file)
@@ -13,7 +13,7 @@ namespace wcf\system\database\table\column;
  */
 final class NotNullVarchar191DatabaseTableColumn
 {
-    public static function create($name): IDatabaseTableColumn
+    public static function create($name): VarcharDatabaseTableColumn
     {
         return VarcharDatabaseTableColumn::create($name)
             ->notNull()
index 9cf4494d8a9b6bc8d0811a0d2115db8dbe47f25a..cfac47e0f8f8f13591b72e85c7a860ff0f0e9b86 100644 (file)
@@ -13,7 +13,7 @@ namespace wcf\system\database\table\column;
  */
 final class NotNullVarchar255DatabaseTableColumn
 {
-    public static function create($name): IDatabaseTableColumn
+    public static function create($name): VarcharDatabaseTableColumn
     {
         return VarcharDatabaseTableColumn::create($name)
             ->notNull()