You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`DeepClone\NotInstantiableException`|`deepclone_to_array`, `deepclone_hydrate`| Resource, anonymous class, `Reflection*`, internal class without serialization support |
131
+
|`DeepClone\ClassNotFoundException`|`deepclone_from_array`, `deepclone_hydrate`| Payload/class name references a class that doesn't exist |
132
+
|`ValueError`|all three| Malformed input, or class not in `$allowed_classes`|
84
133
85
134
Both exception classes extend `\InvalidArgumentException`.
86
135
@@ -114,9 +163,12 @@ sudo make install
114
163
## With Symfony
115
164
116
165
`symfony/var-exporter` and `symfony/polyfill-deepclone` provide the same
117
-
`deepclone_to_array()` / `deepclone_from_array()` functions in pure PHP.
118
-
When this extension is loaded it replaces the polyfill transparently —
119
-
no code change needed, just a 4–5× speedup.
166
+
`deepclone_to_array()`, `deepclone_from_array()`, and `deepclone_hydrate()`
167
+
functions in pure PHP. When this extension is loaded it replaces the polyfill
168
+
transparently — no code change needed.
169
+
170
+
Symfony's `Hydrator::hydrate()` and `Instantiator::instantiate()` delegate
171
+
directly to `deepclone_hydrate()`, making them thin one-liner wrappers.
0 commit comments