diff --git a/modules/openapi-generator/src/main/resources/php/.travis.yml b/modules/openapi-generator/src/main/resources/php/.travis.yml index b4b1d0a6b5a6..714772ee9310 100644 --- a/modules/openapi-generator/src/main/resources/php/.travis.yml +++ b/modules/openapi-generator/src/main/resources/php/.travis.yml @@ -3,7 +3,6 @@ language: php # https://docs.travis-ci.com/user/reference/bionic/#php-support dist: bionic php: - - 7.2 - 7.3 - 7.4 before_install: "composer install" diff --git a/modules/openapi-generator/src/main/resources/php/ApiException.mustache b/modules/openapi-generator/src/main/resources/php/ApiException.mustache index dcba96b0e43a..a69af3008443 100644 --- a/modules/openapi-generator/src/main/resources/php/ApiException.mustache +++ b/modules/openapi-generator/src/main/resources/php/ApiException.mustache @@ -1,7 +1,7 @@ =7.2", + "php": "^7.3 || ^8.0", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/modules/openapi-generator/src/main/resources/php/model.mustache b/modules/openapi-generator/src/main/resources/php/model.mustache index d1450f72cbf6..e2c6458df080 100644 --- a/modules/openapi-generator/src/main/resources/php/model.mustache +++ b/modules/openapi-generator/src/main/resources/php/model.mustache @@ -4,7 +4,7 @@ /** * {{classname}} * - * PHP version 7.2 + * PHP version 7.3 * * @category Class * @package {{invokerPackage}} diff --git a/modules/openapi-generator/src/main/resources/php/model_test.mustache b/modules/openapi-generator/src/main/resources/php/model_test.mustache index af9df8ae19b8..0f54973065f9 100644 --- a/modules/openapi-generator/src/main/resources/php/model_test.mustache +++ b/modules/openapi-generator/src/main/resources/php/model_test.mustache @@ -4,7 +4,7 @@ /** * {{classname}}Test * - * PHP version 7.2 + * PHP version 7.3 * * @category Class * @package {{invokerPackage}} diff --git a/samples/client/petstore/php/OpenAPIClient-php/.travis.yml b/samples/client/petstore/php/OpenAPIClient-php/.travis.yml index b4b1d0a6b5a6..714772ee9310 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/.travis.yml +++ b/samples/client/petstore/php/OpenAPIClient-php/.travis.yml @@ -3,7 +3,6 @@ language: php # https://docs.travis-ci.com/user/reference/bionic/#php-support dist: bionic php: - - 7.2 - 7.3 - 7.4 before_install: "composer install" diff --git a/samples/client/petstore/php/OpenAPIClient-php/README.md b/samples/client/petstore/php/OpenAPIClient-php/README.md index 87bccb9f41f7..9e8da12558b3 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/README.md +++ b/samples/client/petstore/php/OpenAPIClient-php/README.md @@ -7,7 +7,8 @@ This spec is mainly for testing Petstore server and contains fake endpoints, mod ### Requirements -PHP 7.2 and later. +PHP 7.3 and later. +Should also work with PHP 8.0 but has not been tested. ### Composer diff --git a/samples/client/petstore/php/OpenAPIClient-php/composer.json b/samples/client/petstore/php/OpenAPIClient-php/composer.json index 08efaa27b921..bbdfc4692fd7 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/composer.json +++ b/samples/client/petstore/php/OpenAPIClient-php/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": ">=7.2", + "php": "^7.3 || ^8.0", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php index 18f6dc801ced..fcc84cb6363e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php @@ -1,7 +1,7 @@