Skip to content

Commit 62b176e

Browse files
authored
feat(php): drop support for EOLed PHP versions and unify min required version (#17826)
1 parent 7d977b6 commit 62b176e

File tree

177 files changed

+206
-191
lines changed

Some content is hidden

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

177 files changed

+206
-191
lines changed

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-flight/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"type": "library",
1919
"require": {
20-
"php": "^8.1.0",
20+
"php": "^8.1",
2121
"flightphp/core": "^3.5.1",
2222
"ext-json": "*"
2323
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
],
2626
"require": {
27-
"php": ">=8.1",
27+
"php": "^8.1",
2828
"laravel/framework": "^10.0",
2929
"crell/serde": "^1.0"
3030
},

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/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 server stub aims to provide light, yet comprehensive structure for your API project using:
77

8-
- PHP: >=8.0
8+
- PHP: >=8.1
99
- [Laminas Mezzio](https://docs.mezzio.dev/mezzio/): >=3.3
1010
- [Path Handler](https://github.com/Articus/PathHandler): >=0.7
1111

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/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 server stub aims to provide light, yet comprehensive structure for your API project using:
77

8-
- PHP: >=7.3
8+
- PHP: >=8.1
99
- [Laminas Mezzio](https://docs.mezzio.dev/mezzio/): >=3.2
1010
- [Path Handler](https://github.com/Articus/PathHandler): >=0.7
1111

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.

0 commit comments

Comments
 (0)