fix unable to resolve template T (#31680)

This commit is contained in:
Frédéric FRANCE
2024-11-04 12:24:18 +01:00
committed by GitHub
parent fe547bb0df
commit 0349f5b513
2 changed files with 1 additions and 2 deletions

View File

@@ -1547,7 +1547,7 @@ function dol_get_object_properties($obj, $properties = [])
* With native = 1: Use PHP clone. Property that are reference are same pointer. This means $this->db of new object is still valid but point to same this->db than original object.
* With native = 2: Property that are reference are different memory area in the new object (full isolation clone). Only scalar and array values are cloned. This means method are not availables and $this->db of new object is not valid.
*
* @template T of object
* @template T
*
* @param T $object Object to clone
* @param int $native 0=Full isolation method, 1=Native PHP method, 2=Full isolation method keeping only scalar and array properties (recommended)