Commit 5c740cf
authored
feat!: remove deprecated functionality and drop PHP unsupported version compatibility
BREAKING CHANGE:
This PR has been automatically generated by fountain. Please review it and merge it if everything is fine.
> [!CAUTION]
> BREAKING CHANGE.
> The SDK supports PHP version 8.0 and newer. Versions lower than 8.0 are not supported any longer!
## Address deprecated functionality warnings:
<details><summary>
### 1. Set jsonSerialize() return type explicitly
</summary>
* Since [8.2](https://github.com/php/php-src/blob/PHP-8.1.0/ext/json/json.stub.php#L18) - `JsonSerializable` requires the implementations to explicitly return the returned type.
```
Deprecated: Return type of ProcessOut\Invoice::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
```
</details>
<details><summary>
### 2. Remove curl_close() invocations - it's being done automatically during GC now.
</summary>
* Since [8.0](https://php.watch/versions/8.0/resource-CurlHandle) - `curl_close()` has no effect and is deprecated since [8.5](https://php.watch/versions/8.5/curl_close-curl_share_close-deprecated).
```
Deprecated: Function curl_close() is deprecated since 8.5, as it has no effect since PHP 8.0
```
</details>
<details><summary>
### 3. Add "?" explicit nullable type operator when applicable.
</summary>
* Since [8.0](https://php.watch/versions/8.0/null-safe-operator) - added support for "nullable" types - nullability should be explicitly expressed using the `?` operator.
```
Deprecated: ProcessOut\Exceptions\AuthenticationException::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead
```
</details>
## Remove non-existent endpoints and related resources
* /activities
* /coupons
* /customers/:id/subscriptions
* /plans
* /subscriptions
* /supervised-projects86 files changed
Lines changed: 675 additions & 5201 deletions
File tree
- src
- Exceptions
- Networking
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
68 | | - | |
69 | 63 | | |
70 | 64 | | |
71 | 65 | | |
| |||
77 | 71 | | |
78 | 72 | | |
79 | 73 | | |
| 74 | + | |
| 75 | + | |
80 | 76 | | |
81 | 77 | | |
82 | 78 | | |
83 | | - | |
84 | | - | |
85 | 79 | | |
86 | 80 | | |
87 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
0 commit comments