From: Tim Düsterhus Date: Wed, 25 Aug 2021 08:37:13 +0000 (+0200) Subject: Add missing 'not' in error message in AbstractFormFieldDecorator X-Git-Tag: 5.4.5_RC_1~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=171dcc8a31f9508a7fd82461124b3d35cbe4858a;p=GitHub%2FWoltLab%2FWCF.git Add missing 'not' in error message in AbstractFormFieldDecorator --- 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.'); } /**