From 5bc54796a19fa616d6e8a15b6c90450fd3065168 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:35:45 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/TagField.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TagField.php b/src/TagField.php index 3ae22a6..1e85f12 100644 --- a/src/TagField.php +++ b/src/TagField.php @@ -195,7 +195,7 @@ class TagField extends MultiSelectField * Set the model class name for tags * * @param DataList $sourceList - * @return self + * @return TagField */ public function setSourceList($sourceList) { @@ -210,7 +210,7 @@ class TagField extends MultiSelectField { $this->addExtraClass('entwine'); - return $this->customise($properties)->renderWith(self::class); + return $this->customise($properties)->renderWith(TagField::class); } /** @@ -618,9 +618,9 @@ class TagField extends MultiSelectField public function getSchemaDataType(): string { if ($this->getIsMultiple()) { - return self::SCHEMA_DATA_TYPE_MULTISELECT; + return TagField::SCHEMA_DATA_TYPE_MULTISELECT; } - return self::SCHEMA_DATA_TYPE_SINGLESELECT; + return TagField::SCHEMA_DATA_TYPE_SINGLESELECT; } }