oooas icon indicating copy to clipboard operation
oooas copied to clipboard

feat: support re-importing objects exported via var_dump

Open J0sh0nat0r opened this issue 3 years ago • 7 comments

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

J0sh0nat0r avatar Mar 25 '22 14:03 J0sh0nat0r

@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)

macbookandrew avatar Sep 23 '22 16:09 macbookandrew

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

matthew-inamdar avatar Sep 23 '22 16:09 matthew-inamdar

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 👍 .

JamesFreeman avatar Dec 20 '22 09:12 JamesFreeman

@matthew-inamdar any updates on this yet?

macbookandrew avatar Apr 18 '23 16:04 macbookandrew

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

olliescase avatar Jun 09 '23 16:06 olliescase