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 |
127
+
|`DeepClone\ClassNotFoundException`|`deepclone_from_array`, `deepclone_hydrate`| Payload/class name references a class that doesn't exist |
128
+
|`ValueError`|all three| Malformed input, or class not in `$allowed_classes`|
84
129
85
130
Both exception classes extend `\InvalidArgumentException`.
86
131
@@ -114,9 +159,12 @@ sudo make install
114
159
## With Symfony
115
160
116
161
`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.
162
+
`deepclone_to_array()`, `deepclone_from_array()`, and `deepclone_hydrate()`
163
+
functions in pure PHP. When this extension is loaded it replaces the polyfill
164
+
transparently — no code change needed.
165
+
166
+
Symfony's `Hydrator::hydrate()` and `Instantiator::instantiate()` delegate
167
+
directly to `deepclone_hydrate()`, making them thin one-liner wrappers.
0 commit comments