William Cheng
9adfe986a3
Prepare v7.20.0 release ( #22738 )
...
* Revert "v7.19.0 release (#22732 )"
This reverts commit ff400e9a31 .
* prepare v7.20.0 release
* update samples
* update doc
2026-01-20 03:13:58 +08:00
Julian Vennen
2b1f61874e
[php][php-nextgen] Mark nullable things as nullable in phpdoc ( #22650 )
...
* [php][php-nextgen] Mark nullable things as nullable in phpdoc
* [php][php-nextgen] Use exts instead of vendorExtensions
2026-01-12 13:47:11 +08:00
William Cheng
23eff6672f
Prepare v7.19.0 snapshot ( #22569 )
...
* Revert "7.18.0 release (#22567 )"
This reverts commit 51228436e0 .
* prepare 7.19.0 snapshot
* update samples
* update doc
* fix date
2025-12-22 19:25:23 +08:00
Julian Vennen
ea62c676c9
[php][php-nextgen] Cleanup api authentication code when using api keys in cookies or supporting multiple authentication methods ( #22433 )
2025-11-26 14:36:16 +08:00
Julian Vennen
d318752478
[php][php-nextgen] fix return type if empty and non-empty responses are mixed ( #22322 )
2025-11-10 22:06:21 +08:00
Julian Vennen
86ff873a03
[php][php-nextgen] fix array enum query parameters ( #22320 )
2025-11-10 19:14:41 +08:00
William Cheng
f9d2b8b579
Prepare v7.18.0 release ( #22250 )
...
* Revert "v7.17.0 release (#22248 )"
This reverts commit 0120486e62 .
* prepare v7.18.0 release
* update samples
* update doc
2025-10-30 01:25:35 +08:00
Simon Podlipsky
5f13c53825
fix(php,php-nextgen): remove useless string cast from ObjectSerializer.mustache ( #22121 )
2025-10-14 13:14:02 +08:00
William Cheng
885ea07b17
Prepare 7.17.0 ( #22040 )
...
* Revert "v7.16.0 release"
This reverts commit 31299af0fc .
* prepare 7.17.0-SNAPSHOT
* update doc, samples
2025-09-28 17:25:13 +08:00
William Cheng
afedd3fd33
update php samples
2025-08-28 15:59:35 +08:00
William Cheng
399547c2ba
update php samples
2025-08-28 15:53:49 +08:00
William Cheng
20be2decde
Prepare v7.16.0 release ( #21794 )
...
* Revert "v7.15.0 release (#21792 )"
This reverts commit 2c816f89cb .
* prepare 7.15.0 release
* update samples
2025-08-22 19:17:23 +08:00
William Cheng
87231c3b58
[php][php-nextgen] add new github workflow to perform syntax check on php files ( #21678 )
...
* update php laravel samples
* add php-nextgen to the github workflow
* trigger build failure
* add syntax checker workflow
* Revert "trigger build failure"
This reverts commit 5be28f2e76 .
2025-08-01 17:48:04 +08:00
William Cheng
3453c7ba10
Test PHP clients in Github workflow ( #21643 )
...
* test php clients in github workflow
* trigger build failure
* update workflow
* Revert "trigger build failure"
This reverts commit 572a69f6bc .
* update tests
* update tests
* update test
* fix tests
* fix async test
* update tests
2025-07-28 18:33:52 +08:00
Lukáš Černý
b444de2b5c
php-nextgen - Fix flatten() to support arrays of files ( #21458 )
...
* php-nextgen - Fix flatten() to support arrays of files in multipart/form-data
Previously, FormDataProcessor::flatten() unconditionally passed all values through ObjectSerializer::toString(),
which caused an error when flattening arrays containing file resources (e.g. for OpenAPI
multipart/form-data definitions with `type: array`, `items: type: string, format: binary`).
This change adds a check for is_resource() to preserve stream handles without serialization,
ensuring correct behavior when uploading multiple files in a single request.
* php-nextgen - Fix flatten() to support arrays of files in multipart/form-data - samples
2025-07-02 15:46:42 +08:00
William Cheng
046be5dba1
Prepare 7.15.0 ( #21445 )
...
* Revert "v7.14.0 release (#21443 )"
This reverts commit 5eb083e5ce .
* prepare v7.15.0 snapshot
* update samples
* update readme
* update doc
2025-06-25 21:34:58 +08:00
Simon Podlipsky
2327562af4
fix(php-nextgen): do not call static methods dynamically ( #21163 )
2025-04-29 15:29:52 +08:00
William Cheng
dbf720c093
Prepare 7.14.0 release ( #21159 )
...
* Revert "v7.13.0 release (#21157 )"
This reverts commit 4b805ff6b7 .
* prepare v7.14.0 release
* update samples
2025-04-27 22:04:03 +08:00
Simon Podlipsky
d4d14204e8
fix(php-nextgen): always return if not void ( #21119 )
2025-04-23 15:40:57 +08:00
Juan Treminio
346231083f
[PHP] - Add FormDataProcessor to handle nested ModelInterface data ( #20990 )
...
* [PHP] - Add FormDataProcessor to handle nested ModelInterface data
* Generating samples
* Updates php-nextgen and psr-18
* Adds tests
* Some more tests
* One last test
* Updating files
* Fixing diff
* Test fix
* Updating samples
2025-04-23 15:16:47 +08:00
Juan Treminio
6b13ad522f
[PHP] - Add range HTTP code support ( #20992 )
...
* [PHP] - Add range HTTP code support
* Adding response body to 200
* Fix diff; update php-nextgen sample
* Working on unit tests
* Removes dangling files
* Finalize tests
* Remove dangling files
* Add tests for no response body exception
2025-04-07 00:50:58 +08:00
Juan Treminio
8f24df4165
[PHP] Fix converting objects to formdata ( #20888 )
...
* Output of CLI commands per PR comments
* Rebuilding PHP examples, PSR-18
* Rebuilding PHP examples
* Adds explanation for ::flatten_array(); optimized array_is_list pollyfill
* [PHP] Fix converting objects to formdata
* flatten_array -> flattenArray to match code style
* Adds unit test
* Revert "Output of CLI commands per PR comments"
This reverts commit 2eaa93731c .
* Includes php-nextgen; tightens up ::toFormValue()
* Missing ArrayAccess import
* Adds test for refactored ObjectSerializer::toFormValue()
2025-03-19 15:39:57 +08:00
Brian Ferri
cde0f551fc
[PHP-NEXTGEN] make allowable values enum getter static ( #20820 )
...
* [PHP-NEXTGEN] make allowable values enum getter static
* [PHP-NEXTGEN] make allowable values enum getter static
2025-03-08 16:39:48 +08:00
William Cheng
a79aad8420
Prepare 7.13.0 ( #20758 )
...
* Revert "v7.12.0 release"
This reverts commit 073723cb4d .
* set version to v7.13.0-SNAPSHOT
* update samples
* update doc
2025-02-28 13:48:36 +08:00
Julian Vennen
a68ad56ea9
[php-*] Explicitly declare nullable parameters ( #20524 )
...
* [php-nextgen] Explicitly declare nullable parameters explicitly
* Fix some deprecation warnings in other php generators
* [php-nextgen] Fix PHP 8.4 deprecation warnings with nullable/optional array parameters
2025-01-23 18:06:15 +08:00
William Cheng
1fa07bf46c
Prepare 7.12.0 ( #20512 )
...
* Revert "v7.11.0 release (#20508 )"
This reverts commit a7240eeefe .
* prepare 7.12.0 snapshot version
* update samples
* update readme
2025-01-21 00:10:09 +08:00
Julian Vennen
3d2ff493e6
Use conditional access for enumref query params ( #20418 )
2025-01-09 13:22:43 +08:00
Brian Ferri
401c8d0feb
[FIX][PHP-NEXTGEN] Missing tagged union discriminator literal ( #20343 ) ( #20356 )
...
* fix: https://github.com/OpenAPITools/openapi-generator/issues/20343
* chore: apply correct formatting
chore: build and package
---------
Co-authored-by: Christian Ascone <ascone.christian@gmail.com >
---------
Co-authored-by: Christian Ascone <ascone.christian@gmail.com >
2024-12-22 21:51:34 +08:00
Julian Vennen
eceef28850
[PHP][php-nextgen] Improve method parameter typing ( #20361 )
...
* Fix #20354 - Nullable mixed type is not allowed
* Add parameter types for request and asyncWithHttpInfo functions
2024-12-21 15:53:51 +08:00
Julian Vennen
e87c4ea6c0
[PHP][php-nextgen] Fix usage of enums in parameters ( #20294 )
2024-12-16 19:19:24 +08:00
martin-mfg
d87a70dd93
update sample tests, fix Java tests ( #20300 )
...
* replace removed forkMode
* remove junit runner where it's not needed
* update samples without skipping test files, but skip files named "FILES"
* revert overwriting custom tests, add custom java tests to list
* add one sample to CircleCI, fix various Java tests
2024-12-15 17:09:58 +08:00
William Cheng
654f62ce3c
Prepare 7.11.0 ( #20130 )
...
* Revert "prepare 7.10.0 release (#20128 )"
This reverts commit 12dfe8fe74 .
* update to 7.11.0-SNAPSHOT, update samples
* update docs
2024-11-18 20:15:29 +08:00
Julian Vennen
6bd3d53eee
[PHP/Dart/Python] Correctly escape strings in single quotes ( Fixes #17582 ) ( #19529 )
...
* [PHP/Dart/Python] Correctly escape strings in single quotes (Fixes #17582 )
* Move escapeTextInSingleQuotes method to DefaultCodegen, add docblock
2024-11-09 16:50:12 +08:00
William Cheng
e2c458b9ea
Prepare 7.10.0 ( #19809 )
...
* Revert "prepare 7.9.0 release (#19808 )"
This reverts commit 4145000dfe .
* prepare 7.10.0 snapshot
* update doc
* update samples
2024-10-08 11:21:54 +08:00
Bruno Coelho
4c81563708
Update PHP samples
2024-10-07 11:27:35 +01:00
kruegge82
5902af4e75
in case of defined status codes > 299 switch will have no effect. issue 7788 ( #19483 )
...
* in case of defined status codes > 299 switch will have no effect. As described in issue 7788
so we get only an error if statusCode is not defined AND not between 200 and 299
https://github.com/OpenAPITools/openapi-generator/issues/7788
* in case of defined status codes > 299 switch will have no effect. As described in issue 7788
so we get only an error if statusCode is not defined AND not between 200 and 299
https://github.com/OpenAPITools/openapi-generator/issues/7788
2024-10-07 16:01:36 +08:00
William Cheng
77eb192414
update php samples
2024-10-05 15:02:54 +08:00
Imants Horsts
5e7cf1cfdd
By default should use static configuration class instance, otherwise new instance is created every time ( #19775 )
2024-10-05 14:57:08 +08:00
Julian Vennen
78f2f7010f
[PHP] Add missing qualifier for enum parameters ( #19567 )
2024-09-23 16:17:52 +08:00
Julian Vennen
a5384d42b4
[PHP] Remove NUMBER_ prefix from enum vars if a name is provided, show enum descriptions ( #19555 )
...
* Remove NUMBER_ prefix from enum vars if a name is provided, show enum descriptions
* Update php model tests
2024-09-16 17:23:11 +08:00
Julian Vennen
1658264261
Regenerate php-nextgen-sample ( #19556 )
...
* Regenerate php-nextgen-sample
* Add missing changes
2024-09-10 14:32:30 +08:00
Sobhan Sharifi
0643f526af
Fix ObjectSerializer::isEmptyValue to not consider "0" as "" ( #19472 )
2024-09-02 16:03:36 +08:00
William Cheng
91da2fd240
Prepare 7.9.0 snapshot ( #19386 )
...
* Revert "v7.8.0 release (#19385 )"
This reverts commit 6bdc452f92 .
* update samples for v7.9.0-snapshot
2024-08-19 16:14:51 +08:00
Şerban Ghiţă
539aab05a7
[BUG] PHP Client - ObjectSerializer::buildQuery flattens array params resulting invalid URL params (param=a¶m=b vs param[]=a¶m[]=b) #19233 ( #19236 )
...
* [BUG] PHP Client - ObjectSerializer::buildQuery flattens array params resulting invalid URL params (param=a¶m=b vs param[]=a¶m[]=b) #19233
* Added tests (replaced old provider data). This looks like a breaking change
* Fix space
---------
Co-authored-by: Serban Ghita <serban.ghita@virta.global >
2024-08-07 17:15:59 +08:00
Emilien Escalle
7f551bb9a0
feat(php-nextgen-client): add support for streaming ( #19192 )
...
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com >
2024-07-31 17:32:10 +08:00
Julian Vennen
3e263ce3fc
php: Fix typedoc comment for headers in ApiException ( #19217 )
2024-07-23 10:00:48 +08:00
William Cheng
20cfce0b4a
Prepare v7.8.0 ( #19048 )
...
* Revert "v7.7.0 release"
This reverts commit f3dd32385e .
* prepare v7.8.0
* update readme
* update doc
* update samples
2024-07-02 16:45:53 +08:00
William Cheng
741bf0c035
Prepare 7.7.0-SNAPSHOT ( #18709 )
...
* Revert "7.6.0 release"
This reverts commit d76f9d32d1 .
* prepare 7.7.0 snapshot in master
* update samples
2024-05-20 17:27:17 +08:00
Simon Podlipsky
98d026118c
feat(php): allow to pass raw boolean to api ( #18520 )
...
This allows users to use APIs that require booleans in query params not to be cast to int, e.g. `&foo=true`. Currently, `true` is cast to `1` so it's passed as `&foo=1`. That might not be supported by the target API.
The fix contains copy-pasted function from guzzlehttp/psr7 `Query::build()` with minor tweak.
2024-05-01 18:10:00 +08:00
William Cheng
a5ccd7a77e
fix array default check in php nextgen
2024-04-26 10:10:13 +08:00