qual: phpstan for htdocs/core/class/html.formaccounting.class.php

htdocs/core/class/html.formaccounting.class.php	109	Method FormAccounting::select_journal() should return string but returns int.
htdocs/core/class/html.formaccounting.class.php	189	Method FormAccounting::multi_select_journal() should return string but returns int.
htdocs/core/class/html.formaccounting.class.php	339	Method FormAccounting::select_bookkeeping_importkey() should return string but returns int.
htdocs/core/class/html.formaccounting.class.php	403	Method FormAccounting::select_account() should return string but returns int.
htdocs/core/class/html.formaccounting.class.php	503	Method FormAccounting::select_auxaccount() should return string but returns int.
htdocs/core/class/html.formaccounting.class.php	526	Method FormAccounting::select_auxaccount() should return string but returns int.
htdocs/core/class/html.formaccounting.class.php	582	Method FormAccounting::selectyear_accountancy_bookkepping() should return array|string but returns int.
This commit is contained in:
thibdrev
2024-01-24 22:00:56 +01:00
committed by GitHub
parent c451526d2a
commit ef22c80a82

View File

@@ -77,7 +77,7 @@ class FormAccounting extends Form
* @param string $morecss More css non HTML object
* @param string $usecache Key to use to store result into a cache. Next call with same key will reuse the cache.
* @param int $disabledajaxcombo Disable ajax combo box.
* @return string String with HTML select
* @return string|int String with HTML select, or -1 if error
*/
public function select_journal($selectid, $htmlname = 'journal', $nature = 0, $showempty = 0, $select_in = 0, $select_out = 0, $morecss = 'maxwidth300 maxwidthonsmartphone', $usecache = '', $disabledajaxcombo = 0)
{
@@ -157,7 +157,7 @@ class FormAccounting extends Form
* @param string $morecss More css non HTML object
* @param string $usecache Key to use to store result into a cache. Next call with same key will reuse the cache.
* @param int $disabledajaxcombo Disable ajax combo box.
* @return string String with HTML select
* @return string|int String with HTML select, or -1 if error
*/
public function multi_select_journal($selectedIds = array(), $htmlname = 'journal', $nature = 0, $showempty = 0, $select_in = 0, $select_out = 0, $morecss = '', $usecache = '', $disabledajaxcombo = 0)
{
@@ -319,7 +319,7 @@ class FormAccounting extends Form
*
* @param string $htmlname Name of select field
* @param string $selectedkey Value
* @return string HTML edit field
* @return string|int HTML edit field, or -1 if error
*/
public function select_bookkeeping_importkey($htmlname = 'importkey', $selectedkey = '')
{
@@ -359,7 +359,7 @@ class FormAccounting extends Form
* @param string $morecss More css non HTML object
* @param string $usecache Key to use to store result into a cache. Next call with same key will reuse the cache.
* @param string $active Filter on status active or not: '0', '1' or '' for no filter
* @return string String with HTML select
* @return string|int String with HTML select, or -1 if error
*/
public function select_account($selectid, $htmlname = 'account', $showempty = 0, $event = array(), $select_in = 0, $select_out = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $active = '1')
{
@@ -467,7 +467,7 @@ class FormAccounting extends Form
* @param string $morecss More css
* @param string $usecache Key to use to store result into a cache. Next call with same key will reuse the cache.
* @param string $labelhtmlname HTML name of label for autofill of account from name.
* @return string String with HTML select
* @return string|int String with HTML select, or -1 if error
*/
public function select_auxaccount($selectid, $htmlname = 'account_num_aux', $showempty = 0, $morecss = 'minwidth100 maxwidth300 maxwidthonsmartphone', $usecache = '', $labelhtmlname = '')
{
@@ -560,7 +560,7 @@ class FormAccounting extends Form
* @param string $htmlname Name of HTML select object
* @param int $useempty Affiche valeur vide dans liste
* @param string $output_format (html/option (for option html only)/array (to return options arrays
* @return string|array HTML select component or array of select options
* @return string|array|int HTML select component || array of select options || - 1 if error
*/
public function selectyear_accountancy_bookkepping($selected = '', $htmlname = 'yearid', $useempty = 0, $output_format = 'html')
{