From 838f706e5e7f442bb75089ea02f9145c2ba29eb4 Mon Sep 17 00:00:00 2001 From: thibdrev Date: Mon, 12 Feb 2024 03:22:15 +0100 Subject: [PATCH] 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 --- htdocs/holiday/class/holiday.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/holiday/class/holiday.class.php b/htdocs/holiday/class/holiday.class.php index 2f83c9d5f4e..52043502bf1 100644 --- a/htdocs/holiday/class/holiday.class.php +++ b/htdocs/holiday/class/holiday.class.php @@ -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 Value of parameter. Example: 'YYYYMMDDHHMMSS' or < 0 if error */ public function getConfCP($name, $createifnotfound = '') {