Skip to content

Conversation

@brendt
Copy link
Member

@brendt brendt commented Jan 7, 2026

Closes #1834

@brendt
Copy link
Member Author

brendt commented Jan 7, 2026

Before:
Screenshot 2026-01-07 at 10 02 39

After:
Screenshot 2026-01-07 at 10 02 50

@brendt brendt merged commit 5ec931a into 3.x Jan 7, 2026
74 checks passed
@brendt brendt deleted the model-performance branch January 7, 2026 10:47
$serializeWith = $type->asClass()->getAttribute(SerializeWith::class, recursive: true);
}
return $this->memoize('[' . $context->name . '] ' . $property->getName(), function () use ($property, $context) {
$context = MappingContext::from($this->context);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$context = MappingContext::from($this->context);

Why do we need to create $context here again? Can't we just go with the one that we already imported via the use?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure, @innocenzi I think you wrote that part? I simply moved it around with this PR.

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