Skip to content

Commit

Permalink
Merge pull request #23 from bmaziere/drop-php-7-1-support
Browse files Browse the repository at this point in the history
Drop support for PHP 7.1
  • Loading branch information
mremi authored Mar 2, 2020
2 parents 90a5279 + 00f164a commit ad86f0b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ branches:
language: php

php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'

dist: trusty
sudo: false
Expand All @@ -26,24 +26,18 @@ matrix:
- php: '7.3'
env: SYMFONY=3.4.*
- php: '7.3'
env: SYMFONY=^4.2
env: SYMFONY=^4.4
- php: '7.3'
env: SYMFONY_DEPRECATIONS_HELPER=0
- php: '7.2'
env: SYMFONY=3.4.*
- php: '7.2'
env: SYMFONY=^4.2
env: SYMFONY=^4.4
- php: '7.2'
env: SYMFONY_DEPRECATIONS_HELPER=0
- php: '7.1'
env: SYMFONY=3.4.*
- php: '7.1'
env: SYMFONY=^4.2
- php: '7.1'
env: SYMFONY_DEPRECATIONS_HELPER=0
allow_failures:
- php: nightly
- php: '7.3'
- php: '7.4'
- env: SYMFONY_DEPRECATIONS_HELPER=0

before_install:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ master

* Improve message in case of encryption error
* Add command to encrypt secrets
* Drop support for PHP 7.1
* Add PHP 7.4 in CI
* Upgrade PhpUnit to 8

v1.1.0
------
Expand Down
5 changes: 2 additions & 3 deletions Tests/DependencyInjection/EnvVarEncryptedProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ public function testGetEnv(): void

/**
* Asserts getEnv throws an exception with wrong prefix.
*
* @expectedException RuntimeException
* @expectedExceptionMessage Unsupported env var prefix "foo".
*/
public function testGetEnvThrowException(): void
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('Unsupported env var prefix "foo".');
$this->processor->getEnv('foo', 'DATABASE_URL', function () {});
}

Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.2",
"ext-json": "*",
"ext-openssl": "*",
"monolog/monolog": "~1.24|~2.0",
"symfony/config": "~3.3|~4.0",
"symfony/console": "~3.3|~4.0",
"symfony/dependency-injection": "~3.4.10|^4.0.10",
"symfony/form": "~3.3|~4.0",
"symfony/http-kernel": "~3.3|~4.0",
"symfony/translation": "~3.3|~4.0"
"symfony/config": "~3.3|~4.4",
"symfony/console": "~3.3|~4.4",
"symfony/dependency-injection": "~3.4.10|^4.4",
"symfony/form": "~3.3|~4.4",
"symfony/http-kernel": "~3.3|~4.4",
"symfony/translation": "~3.3|~4.4"
},
"require-dev": {
"ekino/phpstan-banned-code": "^0.1",
"ekino/phpstan-banned-code": "^0.2 || ^0.3",
"friendsofphp/php-cs-fixer": "^2.12",
"phpstan/phpstan-phpunit": "^0.11",
"phpunit/phpunit": "^7.2",
"sensiolabs/security-checker": "^5.0",
"phpstan/phpstan-phpunit": "^0.12",
"phpunit/phpunit": "^8.5",
"sensiolabs/security-checker": "^6.0",
"sonata-project/admin-bundle": "3.*"
},
"autoload": {
Expand Down

0 comments on commit ad86f0b

Please sign in to comment.