From cd656425faf1ee2ff67b71d697c873ba90ce9aa2 Mon Sep 17 00:00:00 2001 From: ibrito Date: Thu, 16 Nov 2023 11:27:55 -0300 Subject: [PATCH] refactor: refactor: replace string for static::class --- src/hmmmath/Exception/InvalidArgumentException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hmmmath/Exception/InvalidArgumentException.php b/src/hmmmath/Exception/InvalidArgumentException.php index 009084b..1c644e8 100644 --- a/src/hmmmath/Exception/InvalidArgumentException.php +++ b/src/hmmmath/Exception/InvalidArgumentException.php @@ -44,7 +44,7 @@ private static function validateType($value, string $type, ?string $specializati $validationMethod = 'validate' . $type . strtr($specialization, ['.' => '']); - if (!is_callable(['static', $validationMethod])) { + if (!is_callable([static::class, $validationMethod])) { return false; }