Skip to content

Commit 64f9bd3

Browse files
committed
feat(php): drop support for EOLed PHP versions and unify min required version
1 parent 783e68c commit 64f9bd3

170 files changed

Lines changed: 198 additions & 215 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/samples-php7.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

modules/openapi-generator/src/main/resources/php-dt/README.md.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generated by the [OpenAPI Generator](https://openapi-generator.tech) project.
55
## Overview
66
This lightweight extensible client library is [PSR-7](https://www.php-fig.org/psr/psr-7), [PSR-11](https://www.php-fig.org/psr/psr-11), [PSR-17](https://www.php-fig.org/psr/psr-17) and [PSR-18](https://www.php-fig.org/psr/psr-18) complaint and relies on:
77

8-
- PHP: >=7.4
8+
- PHP: >=8.1
99
- [Data Transfer](https://github.com/Articus/DataTransfer): >=0.6
1010

1111

modules/openapi-generator/src/main/resources/php-dt/composer.json.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": "{{artifactVersion}}",
1919
"type": "library",
2020
"require": {
21-
"php": "^7.4 || ^8.0",
21+
"php": "^8.1",
2222
"articus/data-transfer": "^0.6",
2323
"articus/openapi-generator-common": "^0.3",
2424
"articus/openapi-generator-apiclient": "^0.2",
@@ -36,4 +36,4 @@
3636
"nyholm/psr7": "^1.8",
3737
"symfony/http-client": "^5.4"
3838
}
39-
}
39+
}

modules/openapi-generator/src/main/resources/php-laravel/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
],
2121
"type": "project",
2222
"require": {
23-
"php": "^7.2.5",
23+
"php": "^8.1",
2424
"fideloper/proxy": "^4.2",
2525
"fruitcake/laravel-cors": "^1.0",
2626
"guzzlehttp/guzzle": "^6.3",

modules/openapi-generator/src/main/resources/php-lumen/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"type": "project",
2626
"require": {
27-
"php": "^7.2.5",
27+
"php": "^8.1",
2828
"laravel/lumen-framework": "^7.2"
2929
},
3030
"require-dev": {

modules/openapi-generator/src/main/resources/php-mezzio-ph-modern/composer.json.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": "{{artifactVersion}}",
1919
"type": "project",
2020
"require": {
21-
"php": "^8.0",
21+
"php": "^8.1",
2222
"ext-yaml": "^2.2",
2323
"mezzio/mezzio": "^3.3",
2424
"laminas/laminas-diactoros": "^2.5",
@@ -36,4 +36,4 @@
3636
"": "src/"
3737
}
3838
}
39-
}
39+
}

modules/openapi-generator/src/main/resources/php-mezzio-ph/composer.json.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.3 || ^8.0",
21+
"php": "^8.1",
2222
"ext-yaml": "^2.0",
2323
"mezzio/mezzio": "^3.2",
2424
"laminas/laminas-diactoros": "^2.1",
@@ -37,4 +37,4 @@
3737
"": "src/"
3838
}
3939
}
40-
}
40+
}

modules/openapi-generator/src/main/resources/php-slim4-server/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This server has been generated with [Laminas (Zend) PSR-7 implementation](https:
2020
## Requirements
2121

2222
* Web server with URL rewriting
23-
* PHP 7.4 or newer
23+
* PHP 8.1 or newer
2424

2525
This package contains `.htaccess` for Apache configuration.
2626
If you use another server(Nginx, HHVM, IIS, lighttpd) check out [Web Servers](https://www.slimframework.com/docs/v3/start/web-servers.html) doc.

modules/openapi-generator/src/main/resources/php-slim4-server/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.4 || ^8.0",
25+
"php": "^8.1",
2626
"dyorg/slim-token-authentication": "dev-slim4",
2727
{{#isGuzzlePsr7}}
2828
"guzzlehttp/psr7": "^1.6.1",

modules/openapi-generator/src/main/resources/php-slim4-server/github_action.yml.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
operating-system: [ubuntu-latest, windows-latest, macos-latest]
13-
php-versions: ['7.4', '8.0', '8.1']
13+
php-versions: ['8.1']
1414
runs-on: ${{ matrix.operating-system }}
1515
steps:
1616
- name: Checkout

0 commit comments

Comments
 (0)