Skip to content

Commit 15d6493

Browse files
committed
fix: class_implements issue
1 parent 54b4372 commit 15d6493

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Domain/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,9 @@ private function validateAddedInsight(): Closure
328328
{
329329
return static function ($values): bool {
330330
foreach ($values as $metric => $insights) {
331-
$interfaces = class_implements($metric);
332331
if (
333332
! class_exists($metric) ||
334-
!is_array($interfaces) ||
333+
!is_array($interfaces = class_implements($metric)) ||
335334
! in_array(Metric::class, $interfaces, true)
336335
) {
337336
throw new InvalidConfiguration(sprintf(

0 commit comments

Comments
 (0)