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

* Bump PHP version to 7.1 in readme

* Bump PHP version to 7.1 in class templates

* Remove HHVM from Travis CI config

PHPUnit dropped support of hhvm, so build unlikely will pass tests.
https://github.com/sebastianbergmann/phpunit/issues/3320#issuecomment-426325646

* Remove sudo: false from Travis-CI config

Official doc recommendation:
https://docs.travis-ci.com/user/reference/trusty/#container-based-infrastructure

* Change tested versions to 7.1, 7.2 in Travis-CI

* Remove PHP_CodeSniffer from dev dependencies

There is another linter(PHP CS Fixer) which is fully configured while
CodeSniffer isn't configured at all.

* Use caret instead of tilde in dependencies

^2.12 equals (>= 2.12.0 && <3.0.0) while ~2.12 is (>=2.12.0 && <2.13.0)

* Refresh samples
This commit is contained in:
Yuriy Belenko
2020-05-08 05:55:36 +03:00
committed by GitHub
parent 577ebb687e
commit 8c6236b341
248 changed files with 254 additions and 269 deletions

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesAnyType
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesArray
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesBoolean
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesClass
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesInteger
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesNumber
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesObject
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesString
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Animal
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ApiResponse
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ArrayOfArrayOfNumberOnly
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ArrayOfNumberOnly
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ArrayTest
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* BigCat
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* BigCatAllOf
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Capitalization
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Cat
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* CatAllOf
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Category
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ClassModel
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Client
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Dog
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* DogAllOf
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* EnumArrays
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* EnumClass
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* EnumTest
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* File
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* FileSchemaTestClass
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* FormatTest
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* HasOnlyReadOnly
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* MapTest
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* MixedPropertiesAndAdditionalPropertiesClass
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Model200Response
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ModelInterface
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client\Model

View File

@@ -2,7 +2,7 @@
/**
* ModelList
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ModelReturn
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Name
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* NumberOnly
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Order
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterComposite
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterEnum
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Pet
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ReadOnlyFirst
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* SpecialModelName
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Tag
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* TypeHolderDefault
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* TypeHolderExample
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* User
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* XmlItem
*
* PHP version 5
* PHP version 7.1
*
* @category Class
* @package OpenAPI\Client