From 10cca421b7a792c0d4d9f0fe55bd94ae2c4485a9 Mon Sep 17 00:00:00 2001 From: Michael Pavlista Date: Fri, 28 May 2021 11:45:30 +0200 Subject: [PATCH 1/2] compatible with PHP 8.0 --- .travis.yml | 5 +++-- composer.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6270224..fb6404a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ php: - 7.2 - 7.3 - 7.4 + - 8.0 env: - NETTE_VERSION="^2.4" @@ -28,14 +29,14 @@ jobs: include: - stage: QA name: Static Analysis - php: 7.4 + php: 8.0 env: NETTE_VERSION="^3.0" script: - vendor/bin/phpstan analyze --no-progress --no-interaction --level max src/ - stage: QA name: Code Coverage - php: 7.4 + php: 8.0 env: NETTE_VERSION="^3.0" script: - vendor/bin/tester -p phpdbg -c tests/php.ini-unix -s --coverage coverage.xml --coverage-src src/ tests/TotpAuthenticatorTests diff --git a/composer.json b/composer.json index fd76f34..67418cc 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "issues": "https://github.com/o2ps/TotpAuthenticator/issues" }, "require": { - "php": "^7.2", + "php": ">=7.2.0 <8.1", "paragonie/constant_time_encoding": "^2.0" }, "require-dev": { From e87fb4b58e618ff8ba788e44333c48206fe25507 Mon Sep 17 00:00:00 2001 From: Michael Pavlista Date: Wed, 14 Dec 2022 12:43:28 +0100 Subject: [PATCH 2/2] compatible with PHP 8.1. --- .gitignore | 1 + .travis.yml | 5 +++-- composer.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 7579f74..4f38912 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.idea vendor composer.lock diff --git a/.travis.yml b/.travis.yml index fb6404a..bf08b9a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ php: - 7.3 - 7.4 - 8.0 + - 8.1 env: - NETTE_VERSION="^2.4" @@ -29,14 +30,14 @@ jobs: include: - stage: QA name: Static Analysis - php: 8.0 + php: 8.1 env: NETTE_VERSION="^3.0" script: - vendor/bin/phpstan analyze --no-progress --no-interaction --level max src/ - stage: QA name: Code Coverage - php: 8.0 + php: 8.1 env: NETTE_VERSION="^3.0" script: - vendor/bin/tester -p phpdbg -c tests/php.ini-unix -s --coverage coverage.xml --coverage-src src/ tests/TotpAuthenticatorTests diff --git a/composer.json b/composer.json index 67418cc..a29fbb1 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "issues": "https://github.com/o2ps/TotpAuthenticator/issues" }, "require": { - "php": ">=7.2.0 <8.1", + "php": ">=7.2.0 <8.2", "paragonie/constant_time_encoding": "^2.0" }, "require-dev": {