This repository was archived by the owner on Dec 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - ' 7.0'
5- - ' 7.1'
4+ - 7.3
65
76env :
87 - COMPOSER_UPDATE=
Original file line number Diff line number Diff line change 2121 }
2222 },
2323 "require" : {
24- "php" : " >= 5.6" ,
24+ "php" : " >= 7.3" ,
25+ "ext-intl" : " >= 2.0" ,
2526 "psr/http-message" : " ^1.0" ,
26- "behat/transliterator" : " ^1.2" ,
2727 "psr/log" : " ^1.0"
2828 },
2929 "require-dev" : {
30- "friendsofphp/php-cs-fixer" : " ^2.3 " ,
31- "phpunit/phpunit" : " ^5.7 " ,
30+ "friendsofphp/php-cs-fixer" : " ^2.16 " ,
31+ "phpunit/phpunit" : " ^8.4 " ,
3232 "league/statsd" : " ^1.5"
3333 },
3434 "suggest" : {
Original file line number Diff line number Diff line change 11<?php
22namespace HelloFresh \Stats \Bucket ;
33
4- use Behat \Transliterator \Transliterator ;
54use HelloFresh \Stats \Bucket ;
65
76class Plain implements Bucket
@@ -78,7 +77,7 @@ public static function sanitizeMetricName($metric)
7877 }
7978
8079 // convert unicode symbols to ASCII
81- $ asciiMetric = Transliterator:: utf8ToAscii ( $ metric );
80+ $ asciiMetric = transliterator_transliterate ( ' Any-Latin; Latin-ASCII; ' , $ metric );
8281 if ($ asciiMetric != $ metric ) {
8382 $ metric = Bucket::PREFIX_UNICODE . $ asciiMetric ;
8483 }
You can’t perform that action at this time.
0 commit comments