Use trusty to enable HHVM and add PHP 7.2 to the mix.

Update composer dependencies and fix sniffed code.
parent f7cac58d
dist: xenial dist: trusty
sudo: required sudo: required
language: php language: php
...@@ -14,6 +14,7 @@ php: ...@@ -14,6 +14,7 @@ php:
- 5.6 - 5.6
- 7.0 - 7.0
- 7.1 - 7.1
- 7.2
- nightly - nightly
- hhvm - hhvm
...@@ -42,7 +43,7 @@ before_script: ...@@ -42,7 +43,7 @@ before_script:
script: script:
- composer check-code - composer check-code
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ] ; then composer test-cov; else composer test; fi - if [ "$TRAVIS_PHP_VERSION" == "7.2" ] ; then composer test-cov; else composer test; fi
after_script: after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then composer test-cov-upload; fi - if [ "$TRAVIS_PHP_VERSION" == "7.2" ]; then composer test-cov-upload; fi
...@@ -6,9 +6,11 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ...@@ -6,9 +6,11 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased] ## [Unreleased]
### Added ### Added
### Changed ### Changed
- Updated Travis to use Trusty containers (for HHVM) and add PHP 7.2 to the tests.
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
- PHPCS fixes for updated CodeSniffer dependency.
### Security ### Security
## [0.52.0] - 2018-01-07 ## [0.52.0] - 2018-01-07
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
"ext-pdo": "*", "ext-pdo": "*",
"ext-curl": "*", "ext-curl": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"monolog/monolog": "^1.22", "monolog/monolog": "^1.23",
"guzzlehttp/guzzle": "^6.2" "guzzlehttp/guzzle": "^6.3"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8|^5.7|^6.1", "phpunit/phpunit": "^4.8|^5.7|^6.5",
"squizlabs/php_codesniffer": "^2.8" "squizlabs/php_codesniffer": "^3.2"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
......
This diff is collapsed.
...@@ -855,9 +855,8 @@ class Telegram ...@@ -855,9 +855,8 @@ class Telegram
*/ */
protected function ucfirstUnicode($str, $encoding = 'UTF-8') protected function ucfirstUnicode($str, $encoding = 'UTF-8')
{ {
return return mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding)
mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding) . mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding);
. mb_strtolower(mb_substr($str, 1, mb_strlen($str), $encoding), $encoding);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment