Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[php] Set required PHP 7.1 in code comments and readme #6188

Merged
merged 8 commits into from
May 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions modules/openapi-generator/src/main/resources/php/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- 7.2
before_install: "composer install"
script: "vendor/bin/phpunit"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* ApiException
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Configuration
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand All @@ -20,7 +20,7 @@ namespace {{invokerPackage}};

/**
* Configuration Class Doc Comment
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* ApiException
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ModelInterface
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{modelPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ObjectSerializer
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})

## Requirements

PHP 5.5 and later
PHP 7.1 and later

## Installation & Usage

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* {{classname}}
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* {{classname}}Test
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
},
"require-dev": {
"phpunit/phpunit": "^7.4",
"squizlabs/php_codesniffer": "~2.6",
"friendsofphp/php-cs-fixer": "~2.12"
"friendsofphp/php-cs-fixer": "^2.12"
},
"autoload": {
"psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* {{classname}}
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* {{classname}}Test
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package {{invokerPackage}}
Expand Down
8 changes: 2 additions & 6 deletions samples/client/petstore/php/OpenAPIClient-php/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- 7.2
before_install: "composer install"
script: "vendor/bin/phpunit"
2 changes: 1 addition & 1 deletion samples/client/petstore/php/OpenAPIClient-php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This PHP package is automatically generated by the [OpenAPI Generator](https://o

## Requirements

PHP 5.5 and later
PHP 7.1 and later

## Installation & Usage

Expand Down
3 changes: 1 addition & 2 deletions samples/client/petstore/php/OpenAPIClient-php/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
},
"require-dev": {
"phpunit/phpunit": "^7.4",
"squizlabs/php_codesniffer": "~2.6",
"friendsofphp/php-cs-fixer": "~2.12"
"friendsofphp/php-cs-fixer": "^2.12"
},
"autoload": {
"psr-4": { "OpenAPI\\Client\\" : "lib/" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* AnotherFakeApi
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* FakeApi
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* FakeClassnameTags123Api
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* PetApi
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* StoreApi
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* UserApi
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* ApiException
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Configuration
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down Expand Up @@ -30,7 +30,7 @@

/**
* Configuration Class Doc Comment
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* ApiException
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesAnyType
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesArray
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesBoolean
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesClass
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesInteger
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesNumber
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesObject
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* AdditionalPropertiesString
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Animal
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ApiResponse
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ArrayOfArrayOfNumberOnly
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ArrayOfNumberOnly
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* ArrayTest
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* BigCat
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* BigCatAllOf
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Capitalization
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Cat
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client
Expand Down
Loading