Force type of object

This commit is contained in:
Laurent Destailleur 2017-09-12 19:03:30 +02:00
parent 47d2350ad4
commit 6370e2f514

View File

@ -2006,7 +2006,7 @@ class TaskComment extends CommonObject
* @param int $notrigger 0=launch triggers after, 1=disable triggers
* @return int <=0 if KO, >0 if OK
*/
function update($user, $notrigger=0)
function update(User $user, $notrigger=0)
{
global $conf, $langs;
$error=0;