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

Implemented option for serializer max_depth #427

Closed
wants to merge 1 commit into from

Conversation

dle-sweethearts
Copy link

@dle-sweethearts dle-sweethearts commented Mar 9, 2017

Adds the possibility to define the default depth of the array serialization via configuration

@nokitakaze
Copy link
Contributor

Don't you want to fix code style issues?

Copy link
Contributor

@nokitakaze nokitakaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should do code coverage

{
if ($mb_detect_order != null) {
$this->mb_detect_order = $mb_detect_order;
}
if ( null !== $max_depth ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe !is_null($max_depth) ?

{
$max_depth = null === $max_depth ? $this->max_depth : $max_depth;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe

$max_depth = !is_null($max_depth) ? $max_depth : $this->max_depth;

?

@nokitakaze
Copy link
Contributor

Okay. I need to add this pr to #454

@stayallive
Copy link
Collaborator

stayallive commented Nov 13, 2018

This was done a long time ago and never updated with the latest changes so we cannot move forward with this PR right now. If it's updated we can reconsider it. Sorry it got left in the cold.

Edit: See #632 for a more "current" PR doing about the same.

@stayallive stayallive closed this Nov 13, 2018
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.

3 participants