Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Dec 5, 2025

Release Notes

🚨 BREAKING CHANGES

Array properties containing model objects are now automatically parsed into typed objects instead of raw arrays.

Before:

$activities = $response->getData()->activities; // Raw array
$id = $activities[0]['id']; // Array access

After:

$activities = $response->getData()->activities; // Array<ActivityResponse>
$id = $activities[0]->id; // Object property access

Migration: Replace $array[0]['field'] with $array[0]->field and use camelCase instead of snake_case.

✨ New Features

  • Automatic parsing of arrays of model objects
  • Enhanced IDE support with PHPDoc annotations
  • Added x-stream-client header to all requests
  • Performance improvements with reflection caching
  • Better error handling for DateTime parsing

🔧 Improvements

  • Fixed array access issues in tests
  • Removed debug code
  • Improved type safety across all models
  • Updated code generation templates

@itsmeadi itsmeadi merged commit a636dca into master Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants