diff --git a/src/SettingsField.php b/src/SettingsField.php index a6c2cb5..e8a057e 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 = get_class(); + $class = self::class; throw new InvalidArgumentException( "{$class}::__construct does not accept extra parameters." );