You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 2.0 adds full support for PHP 8.4 by using explicit nullable type declarations. If you're using PHP 8.4 with strict deprecation handling (common in PHPUnit/Laravel test environments), you **must** upgrade to v2.0+ to avoid deprecation errors.
168
+
169
+
**Fixed in v2.0:**
170
+
171
+
```php
172
+
// v1.x - Implicit nullable (deprecated in PHP 8.4)
173
+
function example(array $data = null) { }
174
+
175
+
// v2.0+ - Explicit nullable (PHP 8.4 compatible)
176
+
function example(?array $data = null) { }
177
+
```
178
+
179
+
### Breaking Changes
180
+
181
+
#### WhatsApp OTP Namespace Change
182
+
183
+
The WhatsApp OTP class has been renamed to fix capitalization:
184
+
185
+
```php
186
+
// v1.x
187
+
use Stytch\Consumer\Api\OTPsWhatsapp; // Old
188
+
$client->otps->whatsapp->send(...); // Still works
189
+
190
+
// v2.0+
191
+
use Stytch\Consumer\Api\OTPsWhatsApp; // New (capital A)
192
+
$client->otps->whatsapp->send(...); // Still works
193
+
```
194
+
195
+
**Impact:** Only affects code that directly imports or type-hints the `OTPsWhatsapp` class. The property access `$client->otps->whatsapp` remains unchanged.
196
+
197
+
### New Features in 2.0
198
+
199
+
-**Local JWT Authentication**: Authenticate JWTs locally without making an API call
200
+
-**RBAC Organization Policies**: Set and retrieve organization-specific RBAC policies
201
+
-**External ID Management**: Delete external IDs for users and organization members
202
+
-**DFP Email Risk API**: New device fingerprinting email risk endpoint
203
+
163
204
## Testing
164
205
165
206
The SDK includes a comprehensive test suite covering both Consumer and B2B functionality.
0 commit comments