mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 09:02:59 +01:00
Qual: Fix several phan & stan notices (#31308)
* Qual: Fix several phan & stan notices # Qual: Fix several phan & stan notices Several fixes in files while fixing UnknownClass notices * Qual: Update prepare_head PHPDoc return types # Qual: Update prepare_head PHPDoc return types Provide detailed array return types for prepare_head functions. * Fix new phan notice * Better loadLangs typing and fix call to loadLangs * Fix new issues (stats) * Other fixes of new issues * Qual: update phan baseline
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* Copyright (C) 2018-2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2020 Abbes Bahfir <bafbes@gmail.com>
|
||||
* Copyright (C) 2021 Waël Almoman <info@almoman.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -25,7 +26,7 @@
|
||||
* It loads tabs from modules looking for the entity payment
|
||||
*
|
||||
* @param Paiement $object Current payment object
|
||||
* @return array Tabs for the payment section
|
||||
* @return array<array{0:string,1:string,2:string}> Array of tabs for the payment section
|
||||
*/
|
||||
function payment_prepare_head(Paiement $object)
|
||||
{
|
||||
@@ -73,7 +74,7 @@ function payment_prepare_head(Paiement $object)
|
||||
* It loads tabs from modules looking for the entity payment
|
||||
*
|
||||
* @param int $id ID of bank line
|
||||
* @return array Tabs for the Bankline section
|
||||
* @return array<array{0:string,1:string,2:string}> Array of tabs for the Banline section
|
||||
*/
|
||||
function bankline_prepare_head($id)
|
||||
{
|
||||
@@ -108,7 +109,7 @@ function bankline_prepare_head($id)
|
||||
* It loads tabs from modules looking for the entity payment_supplier
|
||||
*
|
||||
* @param Paiement $object Current payment object
|
||||
* @return array Tabs for the payment section
|
||||
* @return array<array{0:string,1:string,2:string}> Tabs for the payment section
|
||||
*/
|
||||
function payment_supplier_prepare_head(Paiement $object)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user