Skip to content
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

feat: support re-importing objects exported via var_dump #56

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

Conversation

J0sh0nat0r
Copy link

This PR implements the __set_state magic method for all objects, which allows them to be re-imported after being exported via var_export.

In addition 2 minor changes were made to the interface:

  • OAuthFlow::scopes now handles null correctly
  • Scham::items now accepts null, in-line with other methods

@macbookandrew
Copy link

@matthew-inamdar any chance you could look at this? This is preventing us from using php artisan config:cache in a number of Laravel applications (using the https://github.com/vyuldashev/laravel-openapi package which depends on this)

@matthew-inamdar
Copy link
Member

Thanks for this @J0sh0nat0r - I'll take a look at this over the weekend, but it seems like a great addition.

@JamesFreeman
Copy link

Thanks for this @J0sh0nat0r - I'll take a look at this over the weekend, but it seems like a great addition.

@matthew-inamdar, any updates on this? I ran into this issue, would be great if we could get it solved. Happy to lend a hand if there's anything outstanding to get it over the line 👍 .

@macbookandrew
Copy link

@matthew-inamdar any updates on this yet?

@olliescase
Copy link

Just want to +1 this as would help out my laravel application greatly 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants