Skip to content

[VarDumper] Add support for adding more default casters to AbstractCloner::addDefaultCasters() #60480

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

Open
wants to merge 1 commit into
base: 7.4
Choose a base branch
from

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented May 19, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues
License MIT

This PR let us to write better code, and we also get a better discovery

@carsonbot carsonbot added this to the 7.3 milestone May 19, 2025
@lyrixx lyrixx changed the title Add support for adding more default castors to AbstractCloner::addDefaultCasters() Add support for adding more default casters to AbstractCloner::addDefaultCasters() May 19, 2025
@carsonbot carsonbot changed the title Add support for adding more default casters to AbstractCloner::addDefaultCasters() [VarDumper] Add support for adding more default casters to AbstractCloner::addDefaultCasters() May 19, 2025
@lyrixx lyrixx force-pushed the var-dump-add-caster branch from ea86493 to 632335f Compare May 20, 2025 08:21
@lyrixx
Copy link
Member Author

lyrixx commented May 20, 2025

Hello everyone. Thanks for the review! I have addressed your comments.

/**
* Adds default casters for resources and objects.
*
* Maps resources or objects types to a callback.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Maps resources or objects types to a callback.
* Maps resources or object types to a callback.

* Adds default casters for resources and objects.
*
* Maps resources or objects types to a callback.
* Types are in the key, with a callable caster for value.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Types are in the key, with a callable caster for value.
* Use types as keys and callable casters as values.

*
* Maps resources or objects types to a callback.
* Types are in the key, with a callable caster for value.
* Resource types are to be prefixed with a `:`,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Resource types are to be prefixed with a `:`,
* Prefix types with `::`,

@lyrixx lyrixx force-pushed the var-dump-add-caster branch from 632335f to 9f7504c Compare June 4, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy