Skip to content

Commit f5a5f6c

Browse files
authored
Fix error: The option "preset" with value "wordpress" is invalid (#646)
Hello, This is fixing an issue where phpinsights can't be run when setting preset as `wordpress` in phpinsights.php config file. Actual error: ``` Invalid configuration • The option "preset" with value "wordpress" is invalid. Accepted values are: "drupal", "laravel", "symfony", "yii", "magento2", "default". ```
1 parent 1bccb53 commit f5a5f6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Domain/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use NunoMaduro\PhpInsights\Application\Adapters\Magento2\Preset as Magento2Preset;
1111
use NunoMaduro\PhpInsights\Application\Adapters\Symfony\Preset as SymfonyPreset;
1212
use NunoMaduro\PhpInsights\Application\Adapters\Yii\Preset as YiiPreset;
13+
use NunoMaduro\PhpInsights\Application\Adapters\WordPress\Preset as WordPressPreset;
1314
use NunoMaduro\PhpInsights\Application\DefaultPreset;
1415
use NunoMaduro\PhpInsights\Domain\Contracts\FileLinkFormatter as FileLinkFormatterContract;
1516
use NunoMaduro\PhpInsights\Domain\Contracts\Metric;
@@ -31,6 +32,7 @@ final class Configuration
3132
SymfonyPreset::class,
3233
YiiPreset::class,
3334
Magento2Preset::class,
35+
WordPressPreset::class,
3436
DefaultPreset::class,
3537
];
3638

0 commit comments

Comments
 (0)