Skip to content

Commit

Permalink
ENH Use class name instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jun 5, 2024
1 parent e33c5f1 commit 0ba82ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SettingsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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."
);
Expand Down

0 comments on commit 0ba82ee

Please sign in to comment.