From 1306a162451a84f12b58a17109e5baf5550300b2 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Fri, 2 Jul 2021 11:57:57 +0200 Subject: [PATCH] Add a requirement on iconv and suggest mbstring in `composer.json` The iconv PHP extension is used in `ParserState` and hence needs to be required. The mbstring extension is optional, but helpful. So we should help users discover this with a `suggest` entry in the `composer.json`. --- composer.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1d7c4020..e192dd56 100644 --- a/composer.json +++ b/composer.json @@ -15,12 +15,16 @@ } ], "require": { - "php": ">=5.6.20" + "php": ">=5.6.20", + "ext-iconv": "*" }, "require-dev": { "phpunit/phpunit": "^4.8.36", "codacy/coverage": "^1.4" }, + "suggest": { + "ext-mbstring": "for parsing UTF-8 CSS" + }, "autoload": { "psr-4": { "Sabberworm\\CSS\\": "src/"