PHPStan > Update baseline (#34070)

Co-authored-by: Dolibot <dolibarr-bot@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2025-05-06 21:22:19 +02:00 committed by GitHub
parent 095905670a
commit 5701fe7fce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1884,12 +1884,6 @@ parameters:
count: 1
path: ../../../htdocs/ai/admin/setup.php
-
message: '#^Unable to resolve the template type T in call to method DolibarrApi\:\:_cleanObjectDatas\(\)$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/api/class/api.class.php
-
message: '#^Call to function is_object\(\) with ActionComm\|Adherent\|Commande\|CommandeFournisseur\|Contact\|Contrat\|ExpenseReport\|Facture\|FactureFournisseur\|Fichinter\|Mo\|Product\|Project\|Propal\|Task will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -2190,12 +2184,6 @@ parameters:
count: 1
path: ../../../htdocs/asset/model/card.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/asset/model/card.php
-
message: '#^Property CommonObject\:\:\$entity \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property
@ -2412,12 +2400,6 @@ parameters:
count: 1
path: ../../../htdocs/bom/class/bom.class.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/bom/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -3762,12 +3744,6 @@ parameters:
count: 1
path: ../../../htdocs/comm/propal/note.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/comm/propal/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -3996,12 +3972,6 @@ parameters:
count: 2
path: ../../../htdocs/commande/list.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/commande/list.php
-
message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@ -4056,12 +4026,6 @@ parameters:
count: 1
path: ../../../htdocs/commande/note.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/commande/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -4629,7 +4593,7 @@ parameters:
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 5
count: 4
path: ../../../htdocs/compta/facture/class/api_invoices.class.php
-
@ -5010,12 +4974,6 @@ parameters:
count: 1
path: ../../../htdocs/compta/facture/stats/index.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/compta/facture/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -6384,12 +6342,6 @@ parameters:
count: 1
path: ../../../htdocs/contact/list.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/contact/list.php
-
message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@ -6612,12 +6564,6 @@ parameters:
count: 1
path: ../../../htdocs/contrat/list.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/contrat/list.php
-
message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@ -8646,12 +8592,6 @@ parameters:
count: 8
path: ../../../htdocs/core/class/html.form.class.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 2
path: ../../../htdocs/core/class/html.form.class.php
-
message: '#^Variable \$more in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@ -10002,12 +9942,6 @@ parameters:
count: 2
path: ../../../htdocs/core/lib/modulebuilder.lib.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/core/lib/modulebuilder.lib.php
-
message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#'
identifier: greater.alwaysFalse
@ -12666,12 +12600,6 @@ parameters:
count: 1
path: ../../../htdocs/delivery/class/delivery.class.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/delivery/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -12804,12 +12732,6 @@ parameters:
count: 1
path: ../../../htdocs/don/info.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/don/list.php
-
message: '#^Variable \$projectstatic might not be defined\.$#'
identifier: variable.undefined
@ -14238,12 +14160,6 @@ parameters:
count: 1
path: ../../../htdocs/fichinter/note.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/fichinter/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -15972,12 +15888,6 @@ parameters:
count: 2
path: ../../../htdocs/hrm/skill_card.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/hrm/skill_card.php
-
message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@ -15996,12 +15906,6 @@ parameters:
count: 1
path: ../../../htdocs/hrm/skill_document.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/hrm/skill_list.php
-
message: '#^Variable \$contextpage in empty\(\) always exists and is not falsy\.$#'
identifier: empty.variable
@ -16860,12 +16764,6 @@ parameters:
count: 3
path: ../../../htdocs/modulebuilder/index.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/modulebuilder/index.php
-
message: '#^Variable \$class might not be defined\.$#'
identifier: variable.undefined
@ -17016,12 +16914,6 @@ parameters:
count: 1
path: ../../../htdocs/modulebuilder/template/class/api_mymodule.class.php
-
message: '#^Unable to resolve the template type T in call to method MyModuleApi\:\:_cleanObjectDatas\(\)$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/modulebuilder/template/class/api_mymodule.class.php
-
message: '#^Call to function method_exists\(\) with \$this\(MyObject\) and ''getLibStatut'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -17622,12 +17514,6 @@ parameters:
count: 2
path: ../../../htdocs/mrp/mo_production.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/mrp/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$action might not be defined\.$#'
identifier: variable.undefined
@ -18084,12 +17970,6 @@ parameters:
count: 1
path: ../../../htdocs/product/class/api_products.class.php
-
message: '#^Unable to resolve the template type T in call to method Products\:\:_cleanObjectDatas\(\)$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/product/class/api_products.class.php
-
message: '#^Strict comparison using \=\=\= between 2 and 2 will always evaluate to true\.$#'
identifier: identical.alwaysTrue
@ -19602,12 +19482,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/class/api_tasks.class.php
-
message: '#^Unable to resolve the template type T in call to method Tasks\:\:_cleanObjectDatas\(\)$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/projet/class/api_tasks.class.php
-
message: '#^Call to function method_exists\(\) with \$this\(Project\) and ''getLibStatut'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -20316,12 +20190,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/tasks/time.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/projet/tasks/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -21612,12 +21480,6 @@ parameters:
count: 1
path: ../../../htdocs/reception/note.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/reception/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -23550,12 +23412,6 @@ parameters:
count: 1
path: ../../../htdocs/ticket/messaging.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/ticket/tpl/linkedobjectblock.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
@ -24024,12 +23880,6 @@ parameters:
count: 1
path: ../../../htdocs/variants/list.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/variants/list.php
-
message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -24198,12 +24048,6 @@ parameters:
count: 1
path: ../../../htdocs/webportal/class/html.formlistwebportal.class.php
-
message: '#^Unable to resolve the template type T in call to function dol_sort_array$#'
identifier: argument.templateType
count: 1
path: ../../../htdocs/webportal/class/html.formlistwebportal.class.php
-
message: '#^Call to function is_array\(\) with list\<string\> will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
@ -24732,12 +24576,6 @@ parameters:
count: 2
path: ../../../scripts/members/sync_members_dolibarr2ldap.php
-
message: '#^Unable to resolve the template type T in call to function array_values$#'
identifier: argument.templateType
count: 1
path: ../../../scripts/members/sync_members_ldap2dolibarr.php
-
message: '#^Variable \$user might not be defined\.$#'
identifier: variable.undefined
@ -24785,9 +24623,3 @@ parameters:
identifier: equal.alwaysTrue
count: 1
path: ../../../scripts/user/migrate_picture_path.php
-
message: '#^Unable to resolve the template type T in call to function array_values$#'
identifier: argument.templateType
count: 1
path: ../../../scripts/user/sync_users_ldap2dolibarr.php