fix phpstan

This commit is contained in:
Frédéric France 2025-03-01 10:10:40 +01:00
parent fab85fc0ec
commit 5c740cce6d
No known key found for this signature in database
GPG key ID: CE25B0B7B53B9177
3 changed files with 44 additions and 90 deletions

View file

@ -10800,96 +10800,6 @@ parameters:
count: 1
path: ../../../htdocs/core/db/sqlite3.class.php
-
message: '#^Cannot access property \$db on mixed\.$#'
identifier: property.nonObject
count: 3
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Cannot access property \$export_TypeFields_array on mixed\.$#'
identifier: property.nonObject
count: 2
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Cannot access property \$export_entities_array on mixed\.$#'
identifier: property.nonObject
count: 2
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Cannot access property \$export_fields_array on mixed\.$#'
identifier: property.nonObject
count: 2
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Cannot access property \$export_special_array on mixed\.$#'
identifier: property.nonObject
count: 1
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Variable \$r might not be defined\.$#'
identifier: variable.undefined
count: 7
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 10
path: ../../../htdocs/core/extrafieldsinexport.inc.php
-
message: '#^Cannot access property \$db on mixed\.$#'
identifier: property.nonObject
count: 3
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Cannot access property \$import_TypeFields_array on mixed\.$#'
identifier: property.nonObject
count: 2
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Cannot access property \$import_entities_array on mixed\.$#'
identifier: property.nonObject
count: 2
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Cannot access property \$import_fields_array on mixed\.$#'
identifier: property.nonObject
count: 2
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Variable \$r might not be defined\.$#'
identifier: variable.undefined
count: 6
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Variable \$this might not be defined\.$#'
identifier: variable.undefined
count: 9
path: ../../../htdocs/core/extrafieldsinimport.inc.php
-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined

View file

@ -1,5 +1,27 @@
<?php
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @var Conf $conf
* @var DolibarrModules $this
* @var string $keyforselect
* @var string $keyforelement
* @var string $keyforaliasextra
* @var int $r
*/
'
@phan-var-force DolibarrModules $this

View file

@ -1,5 +1,27 @@
<?php
/* Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
*
* 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
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @var Conf $conf
* @var DolibarrModules $this
* @var string $keyforselect
* @var string $keyforelement
* @var string $keyforaliasextra
* @var int $r
*/
'@phan-var-force DolibarrModules $this';