mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Try to fix phan
This commit is contained in:
@@ -177,7 +177,7 @@ abstract class CommonObject
|
|||||||
private $linkedObjectsFullLoaded = array();
|
private $linkedObjectsFullLoaded = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ?static To store a cloned copy of the object before editing it (to keep track of its former properties)
|
* @var ?mixed To store a cloned copy of the object before editing it (to keep track of its former properties)
|
||||||
*/
|
*/
|
||||||
public $oldcopy;
|
public $oldcopy;
|
||||||
|
|
||||||
|
|||||||
@@ -1548,11 +1548,9 @@ 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 = 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.
|
* 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
|
* @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)
|
||||||
* @param T $object Object to clone
|
* @return T Clone object
|
||||||
* @param int $native 0=Full isolation method, 1=Native PHP method, 2=Full isolation method keeping only scalar and array properties (recommended)
|
|
||||||
* @return T Clone object
|
|
||||||
* @see https://php.net/manual/language.oop5.cloning.php
|
* @see https://php.net/manual/language.oop5.cloning.php
|
||||||
* @phan-suppress PhanTypeExpectedObjectPropAccess
|
* @phan-suppress PhanTypeExpectedObjectPropAccess
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user