2
0
forked from Wavyzz/dolibarr

qual: phpstan for commonobject.class.php : public $fk_element can be string or int (#28153)

htdocs/comm/action/class/actioncomm.class.php	291	PHPDoc type int of property ActionComm::$fk_element is not covariant with PHPDoc type string of overridden property CommonObject::$fk_element.

htdocs/comm/mailing/class/advtargetemailing.class.php	59	PHPDoc type int of property AdvanceTargetingMailing::$fk_element is not covariant with PHPDoc type string of overridden property CommonObject::$fk_element.

htdocs/core/class/comment.class.php	37	PHPDoc type int of property Comment::$fk_element is not covariant with PHPDoc type string of overridden property CommonObject::$fk_element.
This commit is contained in:
thibdrev
2024-02-13 11:25:02 +01:00
committed by GitHub
parent 51185952e5
commit b3870856a4

View File

@@ -99,7 +99,8 @@ abstract class CommonObject
public $element; public $element;
/** /**
* @var string Fieldname with the ID of the parent object, if this object has a parent * @var string|int Field with ID of parent key if this field has a parent (a string). For example 'fk_product'.
* ID of parent key itself (an int). For example in few classes like 'Comment', 'ActionComm' or 'AdvanceTargetingMailing'.
*/ */
public $fk_element; public $fk_element;