diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 01adce64..433e9d5c 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -16,7 +16,7 @@ jobs: strategy: max-parallel: 1 matrix: - php_version: [ "7.3", "7.4", "8.0", "8.1", "8.2" ] + php_version: [ "8.1", "8.2", "8.3" ] steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50a7568e..4b46db6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php_version: [ "7.3", "7.4", "8.0", "8.1", "8.2", "8.3" ] + php_version: [ "8.1", "8.2", "8.3" ] steps: - uses: actions/checkout@v4 diff --git a/CODEOWNERS b/CODEOWNERS index b2a35b73..aea35540 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @orkuncakilkaya @TheUnderScorer +* @orkuncakilkaya @TheUnderScorer @ilfa diff --git a/composer.json b/composer.json index dc63c971..b3a04720 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ } ], "require": { - "php": ">=7.1", + "php": ">=8.1", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/docker-compose.yml b/docker-compose.yml index 1ec14bda..bef1d6f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,14 +7,14 @@ services: volumes: - ./:/app php: - image: php:7.2-cli + image: php:8.1-cli volumes: - ./:/app working_dir: /app env_file: - .env phpunit: - image: php:7.2-cli + image: php:8.1-cli volumes: - ./:/app working_dir: /app diff --git a/scripts/functional.sh b/scripts/functional.sh index d65c00fc..26b21a26 100755 --- a/scripts/functional.sh +++ b/scripts/functional.sh @@ -1 +1 @@ -docker container run --env-file .env --rm -v $(pwd):/app/ php:7.2-cli php /app/run_checks.php \ No newline at end of file +docker container run --env-file .env --rm -v $(pwd):/app/ php:8.1-cli php /app/run_checks.php \ No newline at end of file diff --git a/src/Api/FingerprintApi.php b/src/Api/FingerprintApi.php index 2418a286..ea36b13f 100644 --- a/src/Api/FingerprintApi.php +++ b/src/Api/FingerprintApi.php @@ -78,15 +78,6 @@ public function __construct( $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); - - // TODO Remove on next major release - if(version_compare( - PHP_VERSION, - '8.1', - '<' - )) { - trigger_error('You are using a PHP version that has reached EOL. Support for it will be removed in next major release of this SDK. Please consider upgrading to PHP 8.1 or higher.', E_USER_WARNING); - } } /** diff --git a/template/api.mustache b/template/api.mustache index aca8ab86..e2cd5cda 100644 --- a/template/api.mustache +++ b/template/api.mustache @@ -69,15 +69,6 @@ use {{invokerPackage}}\ObjectSerializer; $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); $this->headerSelector = $selector ?: new HeaderSelector(); - - // TODO Remove on next major release - if(version_compare( - PHP_VERSION, - '8.1', - '<' - )) { - trigger_error('You are using a PHP version that has reached EOL. Support for it will be removed in next major release of this SDK. Please consider upgrading to PHP 8.1 or higher.', E_USER_WARNING); - } } /** diff --git a/template/composer.mustache b/template/composer.mustache index 7e565c26..397d75a8 100644 --- a/template/composer.mustache +++ b/template/composer.mustache @@ -32,7 +32,7 @@ } ], "require": { - "php": ">=7.1", + "php": ">=8.1", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*",