Skip to content

Commit

Permalink
[FEATURE] Add support for PHP 7.4
Browse files Browse the repository at this point in the history
Fixes #819
  • Loading branch information
oliverklee committed Dec 3, 2019
1 parent 33c699a commit 49e6af9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ php:
- "7.1"
- "7.2"
- "7.3"
- "7.4"

cache:
directories:
Expand All @@ -23,7 +24,14 @@ before_install:

install:
- >
export IGNORE_PLATFORM_REQS="$(composer php:version |grep -q '^7.3' && printf -- --ignore-platform-reqs)";
function version_gte() { test "$(printf '%s\n' "$@" | sort -n -t. -r | head -n 1)" = "$1"; };
if version_gte $(composer php:version) 7.1; then
echo;
echo "Requiring a newer version of Psalm";
composer require --dev vimeo/psalm:^3.7.2;
fi;
- >
export IGNORE_PLATFORM_REQS="$(composer php:version |grep -q '^7\.[34]' && printf -- --ignore-platform-reqs)";
echo;
echo "Updating the dependencies";
composer update $IGNORE_PLATFORM_REQS --with-dependencies $DEPENDENCIES;
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z

### Added
- Add support for PHP 7.4
([#821](https://github.com/MyIntervals/emogrifier/pull/821))
- Disable php-cs-fixer Yoda conditions
([#791](https://github.com/MyIntervals/emogrifier/issues/791),
[#794](https://github.com/MyIntervals/emogrifier/pull/794))
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"source": "https://github.com/MyIntervals/emogrifier"
},
"require": {
"php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0",
"php": "~7.0 || ~7.1 || ~7.2 || ~7.3 || ~7.4",
"ext-dom": "*",
"ext-libxml": "*",
"symfony/css-selector": "^2.8 || ^3.0 || ^4.0 || ^5.0"
Expand All @@ -46,7 +46,7 @@
"friendsofphp/php-cs-fixer": "^2.15.3",
"jakub-onderka/php-parallel-lint": "^1.0",
"phpmd/phpmd": "^2.7.0",
"phpunit/phpunit": "^6.5.14",
"phpunit/phpunit": "^6.5.14 || ^7.5.17",
"psalm/plugin-phpunit": "^0.5.8",
"slevomat/coding-standard": "^4.0.0",
"squizlabs/php_codesniffer": "^3.5.1",
Expand Down

0 comments on commit 49e6af9

Please sign in to comment.