diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index dbcd4538653..5281bc0c999 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2748,7 +2748,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi } } } elseif ($object->element == 'bom') { - /** @var Bom $object */ + /** @var BOM $object */ '@phan-var-force Bom $object'; $width = 80; $cssclass = 'photowithmargin photoref'; diff --git a/htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php b/htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php index 750f26bca6c..eb08a138e20 100644 --- a/htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php +++ b/htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php @@ -7,6 +7,7 @@ * Copyright (C) 2013 Cédric Salvador * Copyright (C) 2015 Marcos García * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * 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 @@ -453,7 +454,7 @@ class pdf_soleil extends ModelePDFFicheinter * @param ?Fichinter $object FichInter Object * @return void */ - protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0, FichInter $object = null) + protected function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0, Fichinter $object = null) { global $conf; diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index 328038c41f7..cb106b7afeb 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -139,7 +139,7 @@ class Dolresource extends CommonObject * * @param DoliDB $db Database handler */ - public function __construct(DoliDb $db) + public function __construct(DoliDB $db) { $this->db = $db; $this->status = 0; diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 5c49d66439b..6b2dbf737ab 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -28,7 +28,7 @@ parameters: checkAlwaysTrueCheckTypeFunctionCall: false checkAlwaysTrueInstanceof: false checkAlwaysTrueStrictComparison: false - checkClassCaseSensitivity: false + checkClassCaseSensitivity: true checkFunctionArgumentTypes: false checkFunctionNameCase: true checkArgumentsPassedByReference: false @@ -36,7 +36,7 @@ parameters: checkNullables: false checkThisOnly: true checkUnionTypes: false - checkExplicitMixedMissingReturn: false + checkExplicitMixedMissingReturn: true reportMaybes: false reportMaybesInMethodSignatures: false reportStaticMethodSignatures: false