fix phpstan check class case (#30058)

This commit is contained in:
Frédéric FRANCE 2024-06-18 15:48:18 +02:00 committed by GitHub
parent 77986d3d10
commit 6cfd7d16e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -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';

View file

@ -7,6 +7,7 @@
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 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
@ -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;

View file

@ -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;

View file

@ -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