Skip to content

Commit

Permalink
refactor: refactor: replace string for static::class
Browse files Browse the repository at this point in the history
  • Loading branch information
ibritov committed Nov 16, 2023
1 parent 0a869e1 commit cd65642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmmmath/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cd65642

Please sign in to comment.