Skip to content

Commit 4342b6a

Browse files
committed
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into fix_dev_member_photo_with_web_portal
2 parents 642d524 + 4334797 commit 4342b6a

File tree

4 files changed

+11
-45
lines changed

4 files changed

+11
-45
lines changed

dev/build/phpstan/phpstan-baseline.neon

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4272,30 +4272,6 @@ parameters:
42724272
count: 2
42734273
path: ../../../htdocs/core/actions_dellink.inc.php
42744274

4275-
-
4276-
message: '#^Variable \$hidedesc might not be defined\.$#'
4277-
identifier: variable.undefined
4278-
count: 2
4279-
path: ../../../htdocs/core/actions_lineupdown.inc.php
4280-
4281-
-
4282-
message: '#^Variable \$hidedetails might not be defined\.$#'
4283-
identifier: variable.undefined
4284-
count: 2
4285-
path: ../../../htdocs/core/actions_lineupdown.inc.php
4286-
4287-
-
4288-
message: '#^Variable \$hideref might not be defined\.$#'
4289-
identifier: variable.undefined
4290-
count: 2
4291-
path: ../../../htdocs/core/actions_lineupdown.inc.php
4292-
4293-
-
4294-
message: '#^Variable \$permissiontoedit might not be defined\.$#'
4295-
identifier: variable.undefined
4296-
count: 2
4297-
path: ../../../htdocs/core/actions_lineupdown.inc.php
4298-
42994275
-
43004276
message: '#^Call to function is_object\(\) with object will always evaluate to true\.$#'
43014277
identifier: function.alreadyNarrowedType
@@ -4344,12 +4320,6 @@ parameters:
43444320
count: 1
43454321
path: ../../../htdocs/core/actions_massactions.inc.php
43464322

4347-
-
4348-
message: '#^Variable \$from might not be defined\.$#'
4349-
identifier: variable.undefined
4350-
count: 5
4351-
path: ../../../htdocs/core/actions_massactions.inc.php
4352-
43534323
-
43544324
message: '#^Variable \$listofobjectthirdparties in empty\(\) always exists and is not falsy\.$#'
43554325
identifier: empty.variable
@@ -12870,12 +12840,6 @@ parameters:
1287012840
count: 1
1287112841
path: ../../../htdocs/projet/comment.php
1287212842

12873-
-
12874-
message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#'
12875-
identifier: function.alreadyNarrowedType
12876-
count: 1
12877-
path: ../../../htdocs/projet/contact.php
12878-
1287912843
-
1288012844
message: '#^Call to function method_exists\(\) with Project and ''fetchComments'' will always evaluate to true\.$#'
1288112845
identifier: function.alreadyNarrowedType

dev/tools/phan/baseline.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ return [
1717
// PhanTypeInvalidDimOffset : 15+ occurrences
1818
// PhanTypeMismatchDimFetch : 10+ occurrences
1919
// PhanUndeclaredMethod : 7 occurrences
20-
// PhanPossiblyUndeclaredGlobalVariable : 6 occurrences
2120
// PhanTypeArraySuspiciousNull : 5 occurrences
2221
// PhanTypeExpectedObjectPropAccess : 5 occurrences
2322
// PhanPluginDuplicateArrayKey : 4 occurrences
2423
// PhanPluginUndeclaredVariableIsset : 2 occurrences
24+
// PhanPossiblyUndeclaredGlobalVariable : 2 occurrences
2525
// PhanTypeMismatchArgumentProbablyReal : 2 occurrences
2626
// PhanParamTooMany : 1 occurrence
2727
// PhanPossiblyUndeclaredVariable : 1 occurrence
@@ -69,10 +69,9 @@ return [
6969
'htdocs/compta/tva/clients.php' => ['PhanTypeArraySuspiciousNull', 'PhanTypeInvalidDimOffset', 'PhanTypeMismatchArgument'],
7070
'htdocs/compta/tva/index.php' => ['PhanTypeMismatchArgument'],
7171
'htdocs/compta/tva/quadri_detail.php' => ['PhanTypeMismatchArgument'],
72-
'htdocs/contrat/card.php' => ['PhanUndeclaredGlobalVariable'],
7372
'htdocs/core/actions_addupdatedelete.inc.php' => ['PhanUndeclaredProperty'],
7473
'htdocs/core/actions_massactions.inc.php' => ['PhanUndeclaredProperty'],
75-
'htdocs/core/actions_sendmails.inc.php' => ['PhanPossiblyUndeclaredGlobalVariable', 'PhanUndeclaredProperty'],
74+
'htdocs/core/actions_sendmails.inc.php' => ['PhanUndeclaredProperty'],
7675
'htdocs/core/ajax/ajaxdirtree.php' => ['PhanTypeMismatchArgument', 'PhanTypeMismatchProperty', 'PhanUndeclaredGlobalVariable'],
7776
'htdocs/core/ajax/selectobject.php' => ['PhanTypeMismatchArgumentNullable'],
7877
'htdocs/core/class/CMailFile.class.php' => ['PhanTypeMismatchArgument'],
@@ -139,7 +138,6 @@ return [
139138
'htdocs/core/modules/supplier_proposal/doc/pdf_aurore.modules.php' => ['PhanTypeMismatchArgumentNullable', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
140139
'htdocs/core/modules/supplier_proposal/doc/pdf_zenith.modules.php' => ['PhanTypeMismatchArgumentNullable', 'PhanTypeMismatchDimFetch', 'PhanTypeMismatchProperty', 'PhanUndeclaredProperty'],
141140
'htdocs/core/modules/syslog/mod_syslog_file.php' => ['PhanPluginDuplicateArrayKey'],
142-
'htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php' => ['PhanTypeMismatchArgumentNullable'],
143141
'htdocs/core/modules/workstation/mod_workstation_advanced.php' => ['PhanUndeclaredProperty'],
144142
'htdocs/core/multicompany_page.php' => ['PhanTypeMismatchArgument'],
145143
'htdocs/core/tpl/extrafields_view.tpl.php' => ['PhanUndeclaredProperty'],
@@ -160,7 +158,6 @@ return [
160158
'htdocs/expensereport/card.php' => ['PhanUndeclaredProperty'],
161159
'htdocs/expensereport/class/expensereport.class.php' => ['PhanTypeMismatchArgument'],
162160
'htdocs/expensereport/payment/info.php' => ['PhanUndeclaredGlobalVariable'],
163-
'htdocs/externalsite/frames.php' => ['PhanUndeclaredGlobalVariable'],
164161
'htdocs/fichinter/card-rec.php' => ['PhanUndeclaredGlobalVariable'],
165162
'htdocs/fichinter/class/api_interventions.class.php' => ['PhanUndeclaredProperty'],
166163
'htdocs/fichinter/class/fichinterrec.class.php' => ['PhanUndeclaredProperty'],

htdocs/core/actions_lineupdown.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
* @var Translate $langs
4040
*
4141
* @var string $action
42+
* @var int $permissiontoedit
43+
* @var int<0,1> $hidedetails
44+
* @var int<0,1> $hidedesc
45+
* @var int<0,1> $hideref
4246
*/
4347
if ($action == 'up' && $permissiontoedit) {
4448
$object->line_up(GETPOSTINT('rowid'));

htdocs/core/actions_massactions.inc.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@
480480
// Send email if there is at least one qualified object for current thirdparty
481481
if (count($listofqualifiedobj) > 0) {
482482
$langs->load("commercial");
483+
$from = '';
483484

484485
$reg = array();
485486
$fromtype = GETPOST('fromtype');
@@ -685,11 +686,11 @@
685686
// Initialisation donnees
686687
$objectobj2->sendtoid = (empty($contactidtosend) ? 0 : $contactidtosend);
687688
$objectobj2->actionmsg = $actionmsg; // Long text
688-
$objectobj2->actionmsg2 = $actionmsg2; // Short text
689-
$objectobj2->fk_element = $objid2;
690-
$objectobj2->elementtype = $objectobj2->element;
689+
$objectobj2->actionmsg2 = $actionmsg2; // Short text
690+
$objectobj2->fk_element = $objid2;
691+
$objectobj2->elementtype = $objectobj2->element;
691692
if (getDolGlobalString('MAIN_MAIL_REPLACE_EVENT_TITLE_BY_EMAIL_SUBJECT')) {
692-
$objectobj2->actionmsg2 = $subjectreplaced; // Short text
693+
$objectobj2->actionmsg2 = $subjectreplaced; // Short text
693694
}
694695

695696
$triggername = strtoupper(get_class($objectobj2)).'_SENTBYMAIL';

0 commit comments

Comments
 (0)