diff --git a/composer.json b/composer.json index 0bac3b1..b74c72d 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,10 @@ } }, "config": { + "allow-plugins": { + "bamarni/composer-bin-plugin": true, + "symfony/flex": true + }, "optimize-autoloader": true, "preferred-install": { "*": "dist" diff --git a/src/Service/CodeRunner/ConfigurationRunner.php b/src/Service/CodeRunner/ConfigurationRunner.php index 3bd2e1e..e2a9f84 100644 --- a/src/Service/CodeRunner/ConfigurationRunner.php +++ b/src/Service/CodeRunner/ConfigurationRunner.php @@ -13,7 +13,7 @@ * * @author Tobias Nyholm */ -class ConfigurationRunner +class ConfigurationRunner implements Runner { /** * @param list $nodes @@ -77,7 +77,7 @@ private function getFile(CodeNode $node, array $contents): string $regex = match ($node->getLanguage()) { 'php' => '|^// ?([a-z1-9A-Z_\-/]+\.php)$|', 'yaml' => '|^# ?([a-z1-9A-Z_\-/]+\.yaml)$|', - //'xml' => '|^$|', + 'xml' => '|^$|', default => null, };