Skip to content

Commit cfcf283

Browse files
committed
Fix wrong return types
1 parent 8f2a70f commit cfcf283

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

wcfsetup/install/files/lib/system/form/builder/container/wysiwyg/WysiwygFormContainer.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function addSettingsNodes(array $settingsNodes)
197197
* @return WysiwygFormContainer this form container
198198
* @throws \BadMethodCallException if the attachment form field has already been initialized
199199
*/
200-
public function attachmentData(?string $objectType = null, int $parentObjectID = 0, ?int $objectID = null): self
200+
public function attachmentData(?string $objectType = null, int $parentObjectID = 0, ?int $objectID = null): static
201201
{
202202
if ($this->attachmentField !== null) {
203203
throw new \BadMethodCallException("The attachment form field '{$this->getId()}' has already been initialized. Use the atatchment form field directly to manipulate attachment data.");

wcfsetup/install/files/lib/system/form/builder/field/MultilineItemListFormField.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MultilineItemListFormField extends ItemListFormField implements INullableF
3232
/**
3333
* @see TFilterableSelectionFormField::filterable()
3434
*/
35-
public function filterable(bool $filterable = true): self
35+
public function filterable(bool $filterable = true): static
3636
{
3737
$this->filterable = $filterable;
3838

wcfsetup/install/files/lib/system/form/builder/field/PasswordFormField.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function validate()
118118
*
119119
* @since 6.2
120120
*/
121-
public function passwordStrengthMeter(bool $passwordStrengthMeter = true): self
121+
public function passwordStrengthMeter(bool $passwordStrengthMeter = true): static
122122
{
123123
$this->strengthMeter = $passwordStrengthMeter;
124124

@@ -143,7 +143,7 @@ protected function getValidAutoCompleteTokens(): array
143143
return ['new-password', 'current-password'];
144144
}
145145

146-
public function addMeterRelatedField(IFormField $input): self
146+
public function addMeterRelatedField(IFormField $input): static
147147
{
148148
$this->relatedFields[] = $input;
149149

@@ -153,7 +153,7 @@ public function addMeterRelatedField(IFormField $input): self
153153
/**
154154
* @since 6.2
155155
*/
156-
public function addMeterRelatedFieldId(string $fieldId): self
156+
public function addMeterRelatedFieldId(string $fieldId): static
157157
{
158158
$this->relatedFieldsId[] = $fieldId;
159159

0 commit comments

Comments
 (0)