Skip to content

Conversation

@zdc26z
Copy link

@zdc26z zdc26z commented Jan 31, 2025

Primarily, the dependency on the deprecated Spatie DataTransferObject has been removed and replaced with the EventSaucePHP ObjectHydrator. Versions of other dependencies have been updated, and the generated code is PHP 8.3 compatible. All hydrated fields are now nullable, because AT sometimes has null values on fields it says are required.

Kholby Lawson and others added 15 commits January 24, 2025 15:17
Several dependencies were outdated or completed unsupported.

Updated Illuminate version.

Removed DataTransferObject.

Replaced with eventsauce/object-hydrator.

For some fields, even though AT says they are required, I have
seen the API return null values for them.  Therefore, I
decided to make them all nullable.  Maybe that is not the best
approach, but we cannot count on AT to be consistent.

Added templates for mocks to use during testing.
Added some old DTO methods back to Entity base class

Made other entities extend the class
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.

1 participant