Skip to content

Commit c140cce

Browse files
authored
Merge branch 'master' into guzzleRequestOptions
2 parents 4667f2a + 8eaccd6 commit c140cce

10 files changed

Lines changed: 28 additions & 17 deletions

File tree

.github/workflows/release-master.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name: Release Master
33
on:
44
workflow_dispatch:
55
branches: ["master"]
6+
inputs:
7+
skip_deploy:
8+
description: 'Skip maven deploy (use if artifacts already published to Central)'
9+
required: false
10+
default: 'false'
11+
type: choice
12+
options:
13+
- 'false'
14+
- 'true'
615

716
jobs:
817
build:
@@ -60,7 +69,7 @@ jobs:
6069
git config --global hub.protocol https
6170
git remote set-url origin https://\${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/swagger-api/swagger-codegen.git
6271
- name: Run maven deploy/release
63-
if: env.RELEASE_OK == 'yes'
72+
if: env.RELEASE_OK == 'yes' && github.event.inputs.skip_deploy != 'true'
6473
run: |
6574
mvn --no-transfer-progress -B -Prelease deploy
6675
- name: Set up QEMU

modules/swagger-codegen-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.swagger</groupId>
55
<artifactId>swagger-codegen-project</artifactId>
6-
<version>2.4.51-SNAPSHOT</version>
6+
<version>2.4.52-SNAPSHOT</version>
77
<relativePath>../..</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

modules/swagger-codegen-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.swagger</groupId>
66
<artifactId>swagger-codegen-project</artifactId>
7-
<version>2.4.51-SNAPSHOT</version>
7+
<version>2.4.52-SNAPSHOT</version>
88
<relativePath>../..</relativePath>
99
</parent>
1010
<artifactId>swagger-codegen-maven-plugin</artifactId>

modules/swagger-codegen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>io.swagger</groupId>
55
<artifactId>swagger-codegen-project</artifactId>
6-
<version>2.4.51-SNAPSHOT</version>
6+
<version>2.4.52-SNAPSHOT</version>
77
<relativePath>../..</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

modules/swagger-codegen/src/main/resources/php/README.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ composer install
5959
./vendor/bin/phpunit
6060
```
6161

62+
**Note:** Running tests requires PHP 7.2 or later, while the runtime library supports PHP 5.5 and later.
63+
6264
## Getting Started
6365

6466
Please follow the [installation procedure](#installation--usage) and then run the following:

modules/swagger-codegen/src/main/resources/php/api_test.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,34 @@ use \{{invokerPackage}}\ObjectSerializer;
3030
* @author Swagger Codegen team
3131
* @link https://github.com/swagger-api/swagger-codegen
3232
*/
33-
{{#operations}}class {{classname}}Test extends \PHPUnit_Framework_TestCase
33+
{{#operations}}class {{classname}}Test extends \PHPUnit\Framework\TestCase
3434
{
3535
3636
/**
3737
* Setup before running any test cases
3838
*/
39-
public static function setUpBeforeClass()
39+
public static function setUpBeforeClass(): void
4040
{
4141
}
4242

4343
/**
4444
* Setup before running each test case
4545
*/
46-
public function setUp()
46+
public function setUp(): void
4747
{
4848
}
4949

5050
/**
5151
* Clean up after running each test case
5252
*/
53-
public function tearDown()
53+
public function tearDown(): void
5454
{
5555
}
5656

5757
/**
5858
* Clean up after running all test cases
5959
*/
60-
public static function tearDownAfterClass()
60+
public static function tearDownAfterClass(): void
6161
{
6262
}
6363
{{#operation}}

modules/swagger-codegen/src/main/resources/php/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"guzzlehttp/guzzle": "^6.2"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^4.8",
29+
"phpunit/phpunit": "^8.5.52",
3030
"squizlabs/php_codesniffer": "~2.6",
3131
"friendsofphp/php-cs-fixer": "~2.12"
3232
},

modules/swagger-codegen/src/main/resources/php/model_test.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,34 @@ namespace {{invokerPackage}};
3030
* @author Swagger Codegen team
3131
* @link https://github.com/swagger-api/swagger-codegen
3232
*/
33-
class {{classname}}Test extends \PHPUnit_Framework_TestCase
33+
class {{classname}}Test extends \PHPUnit\Framework\TestCase
3434
{
3535
3636
/**
3737
* Setup before running any test case
3838
*/
39-
public static function setUpBeforeClass()
39+
public static function setUpBeforeClass(): void
4040
{
4141
}
4242

4343
/**
4444
* Setup before running each test case
4545
*/
46-
public function setUp()
46+
public function setUp(): void
4747
{
4848
}
4949

5050
/**
5151
* Clean up after running each test case
5252
*/
53-
public function tearDown()
53+
public function tearDown(): void
5454
{
5555
}
5656

5757
/**
5858
* Clean up after running all test cases
5959
*/
60-
public static function tearDownAfterClass()
60+
public static function tearDownAfterClass(): void
6161
{
6262
}
6363

modules/swagger-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.swagger</groupId>
66
<artifactId>swagger-codegen-project</artifactId>
7-
<version>2.4.51-SNAPSHOT</version>
7+
<version>2.4.52-SNAPSHOT</version>
88
<relativePath>../..</relativePath>
99
</parent>
1010
<artifactId>swagger-generator</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<name>swagger-codegen-project</name>
77
<description>swagger-codegen-project</description>
88
<url>https://github.com/swagger-api/swagger-codegen</url>
9-
<version>2.4.51-SNAPSHOT</version>
9+
<version>2.4.52-SNAPSHOT</version>
1010
<scm>
1111
<connection>scm:git:git@github.com:swagger-api/swagger-codegen.git</connection>
1212
<developerConnection>scm:git:git@github.com:swagger-api/swagger-codegen.git</developerConnection>

0 commit comments

Comments
 (0)