Skip to content

Commit

Permalink
Fix error: The option "preset" with value "wordpress" is invalid (#646)
Browse files Browse the repository at this point in the history
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".
```
  • Loading branch information
WillyReyno authored Sep 28, 2023
1 parent 1bccb53 commit f5a5f6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Domain/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use NunoMaduro\PhpInsights\Application\Adapters\Magento2\Preset as Magento2Preset;
use NunoMaduro\PhpInsights\Application\Adapters\Symfony\Preset as SymfonyPreset;
use NunoMaduro\PhpInsights\Application\Adapters\Yii\Preset as YiiPreset;
use NunoMaduro\PhpInsights\Application\Adapters\WordPress\Preset as WordPressPreset;
use NunoMaduro\PhpInsights\Application\DefaultPreset;
use NunoMaduro\PhpInsights\Domain\Contracts\FileLinkFormatter as FileLinkFormatterContract;
use NunoMaduro\PhpInsights\Domain\Contracts\Metric;
Expand All @@ -31,6 +32,7 @@ final class Configuration
SymfonyPreset::class,
YiiPreset::class,
Magento2Preset::class,
WordPressPreset::class,
DefaultPreset::class,
];

Expand Down

0 comments on commit f5a5f6c

Please sign in to comment.