diff --git a/composer.json b/composer.json index 9c8ec72..df234a6 100644 --- a/composer.json +++ b/composer.json @@ -16,8 +16,7 @@ "nayjest/tree": "^3" }, "require-dev": { - "view-components/testing-helpers": "^2.0.1", - "ext-intl": "*" + "view-components/testing-helpers": "^2.0.1" }, "autoload": { "psr-4": { diff --git a/tests/webapp/Controller.php b/tests/webapp/Controller.php index 94f1be7..a4a840c 100644 --- a/tests/webapp/Controller.php +++ b/tests/webapp/Controller.php @@ -379,7 +379,9 @@ protected function prepareDemo11Grid() }) , (new Column('income'))->setValueFormatter(function ($value) { - + if (!class_exists('\NumberFormatter')) { + return '$' . $value; + } static $numberFormatter; if ($numberFormatter === null) { $numberFormatter = new \NumberFormatter('en_US', \NumberFormatter::CURRENCY);