initial commit

This commit is contained in:
boris authored and boris committed 2025-09-30 09:35:59 +01:00
1 parent a783a12c97
commit c7770ea03b
4695 files changed
+525784

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace DeepCopy;
use function function_exists;
if (false === function_exists('DeepCopy\deep_copy')) {
/**
* Deep copies the given value.
*
* @param mixed $value
* @param bool $useCloneMethod
*
* @return mixed
*/
function deep_copy($value, $useCloneMethod = false)
{
return (new DeepCopy($useCloneMethod))->copy($value);
}
}