Merge pull request #27914 from thibdrev/patch-6

qual: phpstan for htdocs/expensereport/class/expensereport.class.php
This commit is contained in:
Laurent Destailleur 2024-01-31 20:35:53 +01:00 committed by GitHub
commit 705b4fa3f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -499,7 +499,7 @@ class ExpenseReport extends CommonObject
// Clear fields
$this->fk_user_creat = $user->id;
$this->fk_user_author = $fk_user_author; // Note fk_user_author is not the 'author' but the guy the expense report is for.
$this->fk_user_valid = '';
$this->fk_user_valid = 0;
$this->date_create = '';
$this->date_creation = '';
$this->date_validation = '';
@ -1653,7 +1653,7 @@ class ExpenseReport extends CommonObject
/**
* Return next reference of expense report not already used
*
* @return string free ref
* @return string|int<-2,-1> free ref, or <0 if error
*/
public function getNextNumRef()
{