From 171dcc8a31f9508a7fd82461124b3d35cbe4858a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 25 Aug 2021 10:37:13 +0200 Subject: [PATCH] Add missing 'not' in error message in AbstractFormFieldDecorator --- .../builder/field/AbstractFormFieldDecorator.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php index 50182b6e2b..51bc0a56b3 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/AbstractFormFieldDecorator.class.php @@ -443,7 +443,7 @@ abstract class AbstractFormFieldDecorator implements IFormField */ public static function create($id) { - throw new \BadMethodCallException('This method is available on a decorator.'); + throw new \BadMethodCallException('This method is not available on a decorator.'); } /** @@ -451,7 +451,7 @@ abstract class AbstractFormFieldDecorator implements IFormField */ public static function validateAttribute($name) { - throw new \BadMethodCallException('This method is available on a decorator.'); + throw new \BadMethodCallException('This method is not available on a decorator.'); } /** @@ -459,7 +459,7 @@ abstract class AbstractFormFieldDecorator implements IFormField */ public static function validateClass($class) { - throw new \BadMethodCallException('This method is available on a decorator.'); + throw new \BadMethodCallException('This method is not available on a decorator.'); } /** @@ -467,7 +467,7 @@ abstract class AbstractFormFieldDecorator implements IFormField */ public static function validateId($id) { - throw new \BadMethodCallException('This method is available on a decorator.'); + throw new \BadMethodCallException('This method is not available on a decorator.'); } /** -- 2.20.1