-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add support for transformation max depths #699
Conversation
config/data.php
Outdated
* You can disable this behaviour by setting this option to true which will return an | ||
* empty array. | ||
*/ | ||
'fail_when_max_transformation_depth_reached' => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'fail_when_max_transformation_depth_reached' => true, | |
'throw_when_max_transformation_depth_reached' => true, |
I think throw
makes it more clear that there's an exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jup
@@ -22,6 +23,8 @@ | |||
|
|||
class TransformedDataCollectableResolver | |||
{ | |||
use ChecksTransformationDepths; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use ChecksTransformationDepths; | |
use ChecksTransformationDepth; |
@@ -20,6 +21,8 @@ | |||
|
|||
class TransformedDataResolver | |||
{ | |||
use ChecksTransformationDepths; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is worth being in a trait
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It needs to be somewhere, also makes it easy for other people who want to build casts based upon max depth checks to include it.
@rubenvanassche
It looks like updating the config to include Any advice? |
for now I'm adding config()->set('data.throw_when_max_transformation_depth_reached', true); to |
See the answer here: #731 |
No description provided.