qual: phpstan for htdocs/holiday/class/holiday.class.php (#28117)

htdocs/holiday/class/holiday.class.php	94	Property Holiday::$date_valid (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php	114	Property Holiday::$date_refuse (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php	124	Property Holiday::$date_cancel (int) does not accept default value of type string.
htdocs/holiday/class/holiday.class.php	1603	Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php	1614	Method Holiday::getConfCP() should return string but returns int.
htdocs/holiday/class/holiday.class.php	1797	Method Holiday::getCPforUser() should return float but returns null.
htdocs/holiday/class/holiday.class.php	1800	Method Holiday::getCPforUser() should return float but returns null.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
thibdrev 2024-02-12 03:22:15 +01:00 committed by GitHub
parent 18c023b983
commit 838f706e5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1577,7 +1577,7 @@ class Holiday extends CommonObject
*
* @param string $name Name of parameter
* @param string $createifnotfound 'stringvalue'=Create entry with string value if not found. For example 'YYYYMMDDHHMMSS'.
* @return string|negative-int Value of parameter (example: 'YYYYMMDDHHMMSS') or < 0 if error
* @return string|int<min,0> Value of parameter. Example: 'YYYYMMDDHHMMSS' or < 0 if error
*/
public function getConfCP($name, $createifnotfound = '')
{