From: Matthias Schmidt Date: Sun, 6 Oct 2019 12:05:53 +0000 (+0200) Subject: Help IDEs recognize return type of `AbstractDatabaseTableColumn::create()` X-Git-Tag: 5.2.0_Beta_2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f74248f4352cd9f368824f1d00d5623b7e4ff5c;p=GitHub%2FWoltLab%2FWCF.git Help IDEs recognize return type of `AbstractDatabaseTableColumn::create()` --- diff --git a/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php b/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php index 1efa602041..3ca213c3cf 100644 --- a/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php +++ b/wcfsetup/install/files/lib/system/database/table/column/AbstractDatabaseTableColumn.class.php @@ -152,6 +152,7 @@ abstract class AbstractDatabaseTableColumn implements IDatabaseTableColumn { /** * @inheritDoc + * @return static */ public static function create($name) { return (new static())->name($name);