Skip to content

Commit

Permalink
Merge pull request #33001 from Dolibarr/phpstan-baseline
Browse files Browse the repository at this point in the history
PHPStan > Update baseline
  • Loading branch information
eldy authored Feb 10, 2025
2 parents 03c8d41 + 1f61789 commit b3f45f7
Showing 1 changed file with 4 additions and 231 deletions.
235 changes: 4 additions & 231 deletions dev/build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -13302,12 +13302,6 @@ parameters:
count: 1
path: ../../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php

-
message: '#^Parameter \#4 \$columnText of method CommonDocGenerator\:\:printStdColumnContent\(\) expects string, float given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/core/modules/mrp/doc/pdf_vinci.modules.php

-
message: '#^Property CommonDocGenerator\:\:\$cols \(array\<string, array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\) does not accept non\-empty\-array\<string, array\{rank\: 0, status\: true, width\: 35, title\: array\{textkey\: ''Ref'', align\: ''L'', padding\: array\{0\.5, 1, 0\.5, 1\.5\}\}, border\-left\: true, content\: array\{align\: ''L'', padding\: array\{1, 0\.5, 1, 1\.5\}\}\}\|array\{rank\: int, width\: float\|int, status\: bool, title\: array\{textkey\: string, label\: string, align\: string, padding\: array\{float, float, float, float\}\}, content\: array\{align\: string, padding\: array\{float, float, float, float\}\}\}\>\.$#'
identifier: assign.propertyType
Expand Down Expand Up @@ -14262,18 +14256,6 @@ parameters:
count: 1
path: ../../../htdocs/core/tpl/extrafields_list_search_title.tpl.php

-
message: '#^Variable \$sortfield might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/tpl/extrafields_list_search_title.tpl.php

-
message: '#^Variable \$sortorder might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/core/tpl/extrafields_list_search_title.tpl.php

-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
Expand Down Expand Up @@ -17556,24 +17538,6 @@ parameters:
count: 1
path: ../../../htdocs/fourn/commande/dispatch.php

-
message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/fourn/commande/dispatch.php

-
message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/fourn/commande/dispatch.php

-
message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/fourn/commande/dispatch.php

-
message: '#^Right side of && is always false\.$#'
identifier: booleanAnd.rightAlwaysFalse
Expand Down Expand Up @@ -20928,54 +20892,6 @@ parameters:
count: 3
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:_validate\(\) has parameter \$data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:_validate\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:delete\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:index\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:post\(\) has parameter \$request_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:produceAndConsume\(\) has parameter \$request_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:produceAndConsumeAll\(\) has parameter \$request_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Method Mos\:\:put\(\) has parameter \$request_data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: ../../../htdocs/mrp/class/api_mos.class.php

-
message: '#^Negated boolean expression is always true\.$#'
identifier: booleanNot.alwaysTrue
Expand Down Expand Up @@ -21150,12 +21066,6 @@ parameters:
count: 1
path: ../../../htdocs/mrp/mo_card.php

-
message: '#^Variable \$titlelist might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/mrp/mo_card.php

-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
Expand Down Expand Up @@ -21186,12 +21096,6 @@ parameters:
count: 1
path: ../../../htdocs/mrp/mo_movements.php

-
message: '#^Variable \$movement might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/mrp/mo_movements.php

-
message: '#^Variable \$text might not be defined\.$#'
identifier: variable.undefined
Expand Down Expand Up @@ -21324,41 +21228,12 @@ parameters:
count: 1
path: ../../../htdocs/opcachepreload.php

-
message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/opensurvey/card.php

-
message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/opensurvey/card.php

-
message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 1
path: ../../../htdocs/opensurvey/card.php

-
message: '#^Variable \$id might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/card.php

-
message: '#^Variable \$userstatic might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/opensurvey/card.php

-
message: '#^PHPDoc type .* is not covariant with PHPDoc type array<CommonObject\|stdClass> of overridden property CommonObject::\$lines\.$#'
count: 1
path: ../../../htdocs/opensurvey/class/opensurveysondage.class.php

-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
Expand All @@ -21372,14 +21247,14 @@ parameters:
path: ../../../htdocs/opensurvey/class/opensurveysondage.class.php

-
message: '#^Method Opensurveysondage\:\:fetchAll\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
message: '#^Negated boolean expression is always true\.$#'
identifier: booleanNot.alwaysTrue
count: 1
path: ../../../htdocs/opensurvey/class/opensurveysondage.class.php

-
message: '#^Negated boolean expression is always true\.$#'
identifier: booleanNot.alwaysTrue
message: '#^PHPDoc type array\<array\<string, int\|string\>\> of property Opensurveysondage\:\:\$lines is not covariant with PHPDoc type array\<CommonObject\|stdClass\> of overridden property CommonObject\:\:\$lines\.$#'
identifier: property.phpDocType
count: 1
path: ../../../htdocs/opensurvey/class/opensurveysondage.class.php

Expand Down Expand Up @@ -21443,12 +21318,6 @@ parameters:
count: 1
path: ../../../htdocs/opensurvey/results.php

-
message: '#^Variable \$cleinsertion might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/opensurvey/results.php

-
message: '#^Variable \$erreur_ajout_date in isset\(\) always exists and is not nullable\.$#'
identifier: isset.variable
Expand All @@ -21461,42 +21330,6 @@ parameters:
count: 1
path: ../../../htdocs/opensurvey/results.php

-
message: '#^Variable \$meilleurecolonne might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/results.php

-
message: '#^Variable \$modifier might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/results.php

-
message: '#^Variable \$userstatic might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/results.php

-
message: '#^Variable \$allow_comments might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/wizard/create_survey.php

-
message: '#^Variable \$allow_spy might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/wizard/create_survey.php

-
message: '#^Variable \$champdatefin might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/opensurvey/wizard/create_survey.php

-
message: '#^Left side of && is always false\.$#'
identifier: booleanAnd.leftAlwaysFalse
Expand Down Expand Up @@ -23597,24 +23430,6 @@ parameters:
count: 1
path: ../../../htdocs/product/stock/tpl/extrafields_add.tpl.php

-
message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/product/stock/tpl/stockcorrection.tpl.php

-
message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/product/stock/tpl/stockcorrection.tpl.php

-
message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/product/stock/tpl/stockcorrection.tpl.php

-
message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse
Expand Down Expand Up @@ -24143,30 +23958,6 @@ parameters:
count: 1
path: ../../../htdocs/projet/element.php

-
message: '#^PHPDoc tag @var has invalid value \(\$loanSchedule LoanSchedule\)\: Unexpected token "\$loanSchedule", expected type at offset 20 on line 2$#'
identifier: phpDoc.parseError
count: 1
path: ../../../htdocs/projet/element.php

-
message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/projet/element.php

-
message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/projet/element.php

-
message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 2
path: ../../../htdocs/projet/element.php

-
message: '#^Variable \$margin in isset\(\) always exists and is not nullable\.$#'
identifier: isset.variable
Expand Down Expand Up @@ -26141,24 +25932,6 @@ parameters:
count: 1
path: ../../../htdocs/reception/dispatch.php

-
message: '#^Parameter \#4 \$month of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 4
path: ../../../htdocs/reception/dispatch.php

-
message: '#^Parameter \#5 \$day of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 4
path: ../../../htdocs/reception/dispatch.php

-
message: '#^Parameter \#6 \$year of function dol_mktime expects int, array\<mixed\>\|string given\.$#'
identifier: argument.type
count: 4
path: ../../../htdocs/reception/dispatch.php

-
message: '#^Variable \$modebatch might not be defined\.$#'
identifier: variable.undefined
Expand Down

0 comments on commit b3f45f7

Please sign in to comment.