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

Improve uncloneable exception #7

Merged
merged 2 commits into from
Nov 20, 2014
Merged

Conversation

jjsaunier
Copy link
Contributor

hey,

I just improve uncloneable exception, when you don't want to skip uncloneable and you got exception from php clone you got this message:

Error: Trying to clone an uncloneable object of class ReflectionClass in /home/.../vendor/myclabs/deep-copy/src/DeepCopy/DeepCopy.php line 132

Now:

Class "Acme\AcmeDemoBundle\Entity\Acme" is not cloneable.

This throw DeepCopy\Exception\CloneException

Now it is easy to see which class raises concerns directly :)

@mnapoli
Copy link
Member

mnapoli commented Nov 20, 2014

Good stuff! thanks

mnapoli added a commit that referenced this pull request Nov 20, 2014
Improve uncloneable exception
@mnapoli mnapoli merged commit d93c485 into myclabs:master Nov 20, 2014
@mnapoli
Copy link
Member

mnapoli commented Nov 20, 2014

I've released 1.2.1

@mnapoli mnapoli added the bug label Mar 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants