Skip to content

Commit c645c5c

Browse files
authored
Merge pull request #92 from negruhorea/composer-guzzle-psr7-allow-v2
Add support for guzzlehttp/psr7 v2
2 parents 1ee2611 + c0c2e36 commit c645c5c

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [10.1.2] - 2023.08.10
8+
### Added
9+
- support for guzzlehttp/psr7 version 2.0 to generated composer.json
10+
711
## [10.1.1] - 2023.07.13
812
### Fixed
913
- null verification for nullable properties before validating constraints

example/PetStoreClient/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"docler-labs/api-client-exception": "^1.0|^2.0",
1414
"ext-dom": "*",
1515
"ext-json": "*",
16-
"guzzlehttp/psr7": "^1.6",
16+
"guzzlehttp/psr7": "^1.6|^2.0",
1717
"pimple/pimple": "^3.3",
1818
"psr/container": "^1.0",
1919
"psr/http-client": "^1.0"

src/Generator/Implementation/HttpMessage/GuzzleHttpMessage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function getRequestMapperClassName(): string
1818
public function getPackages(): array
1919
{
2020
return [
21-
'guzzlehttp/psr7' => '^1.6',
21+
'guzzlehttp/psr7' => '^1.6|^2.0',
2222
];
2323
}
2424

test/suite/functional/Meta/ComposerJson/composer_default.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"php": ">=7.4",
1212
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-json": "*",
14-
"guzzlehttp/psr7": "^1.6",
14+
"guzzlehttp/psr7": "^1.6|^2.0",
1515
"pimple/pimple": "^3.3",
1616
"psr/container": "^1.0",
1717
"psr/http-client": "^1.0"

test/suite/functional/Meta/ComposerJson/composer_guzzle_message.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"php": ">=7.4",
1212
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-json": "*",
14-
"guzzlehttp/psr7": "^1.6",
14+
"guzzlehttp/psr7": "^1.6|^2.0",
1515
"pimple/pimple": "^3.3",
1616
"psr/container": "^1.0",
1717
"psr/http-client": "^1.0"

test/suite/functional/Meta/ComposerJson/composer_with_intl_requirement.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"docler-labs/api-client-exception": "^1.0|^2.0",
1313
"ext-intl": "*",
1414
"ext-json": "*",
15-
"guzzlehttp/psr7": "^1.6",
15+
"guzzlehttp/psr7": "^1.6|^2.0",
1616
"pimple/pimple": "^3.3",
1717
"psr/container": "^1.0",
1818
"psr/http-client": "^1.0"

0 commit comments

Comments
 (0)