QUAL Use phan to help detect new issues (#27706)

* Qual: Add phan flow

- Add phan configuration (config, baseline, stubs);
- Add github action;
- Update apstats.php.

* Add directives to ignore false phan notices

* Qual: Add typing hints for extrafields TPL files

# Qual: Add typing hints for extrafields TPL files

Add typing hints for phan on view files

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
MDW
2024-02-21 18:14:29 +01:00
committed by GitHub
parent 5460b97e8b
commit 8655d5a86b
96 changed files with 29903 additions and 2 deletions

View File

@@ -761,6 +761,7 @@ class Documents extends DolibarrApi
if (is_object($object)) {
if ($fetchbyid) {
// @phan-suppress-next-line PhanPluginSuspiciousParamPosition
$result = $object->fetch($ref);
} else {
$result = $object->fetch('', $ref);