From 0ba82eeab731d96a048f417d3d6834d0d2237de9 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 5 Jun 2024 16:59:24 +1200 Subject: [PATCH] ENH Use class name instead of self --- src/SettingsField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SettingsField.php b/src/SettingsField.php index e8a057e..2573491 100644 --- a/src/SettingsField.php +++ b/src/SettingsField.php @@ -33,7 +33,7 @@ class SettingsField extends CompositeField public function __construct($children = null) { if ($children) { - $class = self::class; + $class = SettingsField::class; throw new InvalidArgumentException( "{$class}::__construct does not accept extra parameters." );