From e14d107b36500d4bab3f82a3062ccc32e1f9f926 Mon Sep 17 00:00:00 2001 From: Hannes Kirsman Date: Mon, 11 Nov 2019 11:16:41 +0200 Subject: [PATCH] #33 Add support for non Drupal 8 projects Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible. --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index bd46e7d..defe9ee 100755 --- a/composer.json +++ b/composer.json @@ -31,6 +31,7 @@ ], "bin": ["bin/check_perms"], "require": { + "symfony/polyfill-iconv": "^1", "phpro/grumphp": "^0.16.0", "drupal/coder": "^8", "phpcompatibility/php-compatibility": "^9.3", @@ -42,6 +43,9 @@ "mglaman/phpstan-drupal": "^0.11.1", "phpstan/phpstan-deprecation-rules": "^0.11.0" }, + "provide": { + "ext-iconv": "*" + }, "autoload": { "psr-4": { "Wunderio\\GrumPHP\\": "src/"