Skip to content

Compatibility Updates #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Compatibility Updates #17

wants to merge 15 commits into from

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