From 240f576335af20686f39ebe8956a5718df86ea43 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:19:41 +1300 Subject: [PATCH] FIX Don't use deprecated usage of get_class() (#73) --- src/SettingsField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." );