feat: PHP SDK 24.0.1 — nullable BillingLimits, consoleAccessedAt empty default#72
feat: PHP SDK 24.0.1 — nullable BillingLimits, consoleAccessedAt empty default#72premtsd-code wants to merge 2 commits into
Conversation
Greptile SummaryThis patch (SDK 24.0.1) fixes a runtime crash where every
Confidence Score: 5/5Safe to merge — targeted fix for a real parse crash and a clean rollback of an unreleased feature, with no remaining broken references. The billing-limits changes correctly address the parse failure without introducing new required fields or breaking the constructor API. All Presences-related symbols were fully removed with no dangling imports confirmed by codebase-wide search. Test fixtures updated consistently across 14 test cases. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "chore: bump version to 24.0.1 and add ch..." | Re-trigger Greptile |
| public static function from(array $data): static | ||
| { | ||
| if (!array_key_exists('bandwidth', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "bandwidth" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('storage', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "storage" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('users', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "users" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('executions', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "executions" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('GBHours', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "GBHours" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('imageTransformations', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "imageTransformations" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('authPhone', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "authPhone" for ' . static::class . '.'); | ||
| } | ||
| if (!array_key_exists('budgetLimit', $data)) { | ||
| throw new \InvalidArgumentException('Missing required field "budgetLimit" for ' . static::class . '.'); | ||
| } | ||
|
|
||
| return new static( |
There was a problem hiding this comment.
Stray blank line left after the required-field validation checks were removed. The
from() method body now opens with an empty line before return new static(, which is a leftover from the deletion.
| public static function from(array $data): static | |
| { | |
| if (!array_key_exists('bandwidth', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "bandwidth" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('storage', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "storage" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('users', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "users" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('executions', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "executions" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('GBHours', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "GBHours" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('imageTransformations', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "imageTransformations" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('authPhone', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "authPhone" for ' . static::class . '.'); | |
| } | |
| if (!array_key_exists('budgetLimit', $data)) { | |
| throw new \InvalidArgumentException('Missing required field "budgetLimit" for ' . static::class . '.'); | |
| } | |
| return new static( | |
| public static function from(array $data): static | |
| { | |
| return new static( |
This PR contains updates to the PHP SDK for version 24.0.1.