Skip to content

Cast object to string with object hash#1

Open
ywisax wants to merge 1 commit intoaxypro:masterfrom
ywisax:patch-1
Open

Cast object to string with object hash#1
ywisax wants to merge 1 commit intoaxypro:masterfrom
ywisax:patch-1

Conversation

@ywisax
Copy link

@ywisax ywisax commented May 15, 2024

In general php exception backtrack print, it will cast object to string like Object(App\Entity\User).

If someone wants to manage huge of objects(like doctrone/orm entity manager), it will be helpful to print with the object hash like Object(App\Entity\User@00000000000000020000000000000000)

In general php exception backtrack print, it will cast object to string like `Object(App\Entity\User)`.

If someone wants to manage huge of objects(like doctrone/orm entity manager), it will be helpful to print with the object hash like `Object(App\Entity\User@00000000000000020000000000000000)`
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.

1 participant