We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class_implements
1 parent 54b4372 commit 15d6493Copy full SHA for 15d6493
src/Domain/Configuration.php
@@ -328,10 +328,9 @@ private function validateAddedInsight(): Closure
328
{
329
return static function ($values): bool {
330
foreach ($values as $metric => $insights) {
331
- $interfaces = class_implements($metric);
332
if (
333
! class_exists($metric) ||
334
- !is_array($interfaces) ||
+ !is_array($interfaces = class_implements($metric)) ||
335
! in_array(Metric::class, $interfaces, true)
336
) {
337
throw new InvalidConfiguration(sprintf(
0 commit comments