Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Nov 11, 2024
1 parent c5c5e82 commit 17f8203
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
24 changes: 0 additions & 24 deletions build/phpstan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -31518,36 +31518,12 @@ parameters:
count: 2
path: ../../htdocs/public/agenda/agendaexport.php

-
message: '#^Variable \$conf might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../htdocs/public/agenda/agendaexport.php

-
message: '#^Variable \$db might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/public/agenda/agendaexport.php

-
message: '#^Variable \$hookmanager might not be defined\.$#'
identifier: variable.undefined
count: 3
path: ../../htdocs/public/agenda/agendaexport.php

-
message: '#^Variable \$langs might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/public/agenda/agendaexport.php

-
message: '#^Variable \$user might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../htdocs/public/agenda/agendaexport.php

-
message: '#^Negated boolean expression is always true\.$#'
identifier: booleanNot.alwaysTrue
Expand Down
8 changes: 7 additions & 1 deletion htdocs/public/agenda/agendaexport.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ function llxFooterVierge()
// Load Dolibarr environment
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';

/**
* @var Conf $conf
* @var DoliDB $db
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
*/
$object = new ActionComm($db);

// Not older than
Expand Down

0 comments on commit 17f8203

Please sign in to comment.