Skip to content

Commit 99912a3

Browse files
Bump version to 16.5.0-beta.1
1 parent 231848d commit 99912a3

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

CHANGELOG.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 16.5.0-beta.1 - 2024-12-20
4+
* [#1794](https://github.com/stripe/stripe-php/pull/1794) Improved php type hints
5+
6+
### Adds Create/Update/Retrieve/Delete/All/Search parameters
7+
8+
You will now be able to get type hints of the keys that can passed without switching out of your IDE. Eg.
9+
```php
10+
* @param null|array{customer:string, components: array} $params
11+
```
12+
13+
<img width="417" alt="PHPStorm IDE with array type hints" src="https://github.com/user-attachments/assets/e914dcda-354f-4df2-b82e-217ad931e71d">
14+
15+
### Updated StripeObject class properties
16+
We changed the type of class properties from `StripeObject` to something more specific.
17+
18+
For example: Invoice settings was defined as a StripeObject in Customer resource.
19+
20+
https://github.com/stripe/stripe-php/blob/bae10cd799404f0f4862ec03810c5ff8ca634b30/lib/Customer.php#L25
21+
22+
Now you will be able to reference `custom_fields` and `rendering_options` on `customer->invoice_settings` without PHPStan complaining.
23+
```php
24+
* @property object{custom_fields: null|object{name: string, value: string}&\Stripe\StripeObject&\stdClass[], default_payment_method: null|string|\Stripe\PaymentMethod, footer: null|string, rendering_options: null|object{amount_tax_display: null|string, template: null|string}&\Stripe\StripeObject&\stdClass}&\Stripe\StripeObject&\stdClass $invoice_settings
25+
*/
26+
```
27+
328
## 16.4.0-beta.3 - 2024-12-12
429
* [#1792](https://github.com/stripe/stripe-php/pull/1792) Update generated code for beta
530
* Add support for `allow_redisplay` on `Card` and `Source`

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.4.0-beta.3
1+
16.5.0-beta.1

lib/Stripe.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Stripe
6464
/** @var float Initial delay between retries, in seconds */
6565
private static $initialNetworkRetryDelay = 0.5;
6666

67-
const VERSION = '16.4.0-beta.3';
67+
const VERSION = '16.5.0-beta.1';
6868

6969
/**
7070
* @return string the API key used for requests

0 commit comments

Comments
 (0)