Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit 55df40e

Browse files
committed
Update travis configuration
1 parent 0acd6a9 commit 55df40e

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
language: php
22

33
php:
4-
- '7.0'
5-
- '7.1'
4+
- 7.3
65

76
env:
87
- COMPOSER_UPDATE=

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
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": {

src/Bucket/Plain.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace HelloFresh\Stats\Bucket;
33

4-
use Behat\Transliterator\Transliterator;
54
use HelloFresh\Stats\Bucket;
65

76
class 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
}

0 commit comments

Comments
 (0)