Skip to content

Commit

Permalink
add ignore
Browse files Browse the repository at this point in the history
add ignore

add ignore

add ignore

add ignore
  • Loading branch information
frederic34 committed Jul 2, 2024
1 parent 1ea9c06 commit b0b3358
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
5 changes: 3 additions & 2 deletions htdocs/core/class/rssparser.class.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2011-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* 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
Expand Down Expand Up @@ -290,9 +291,9 @@ public function parser($urlRSS, $maxNb = 0, $cachedelay = 60, $cachedir = '')

xml_set_object($xmlparser, $this);
// @phan-suppress-next-line PhanUndeclaredFunctionInCallable
xml_set_element_handler($xmlparser, 'feed_start_element', 'feed_end_element');
xml_set_element_handler($xmlparser, 'feed_start_element', 'feed_end_element'); // @phpstan-ignore-line
// @phan-suppress-next-line PhanUndeclaredFunctionInCallable
xml_set_character_data_handler($xmlparser, 'feed_cdata');
xml_set_character_data_handler($xmlparser, 'feed_cdata'); // @phpstan-ignore-line

$status = xml_parse($xmlparser, $str, false);

Expand Down
3 changes: 2 additions & 1 deletion htdocs/core/lib/phpsessionindb.lib.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2020 Laurent Destailleur <eldy@users.sourceforge.net>
* 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
Expand Down Expand Up @@ -244,4 +245,4 @@ function dolSessionGC($max_lifetime)
}

// Call to register user call back functions.
session_set_save_handler("dolSessionOpen", "dolSessionClose", "dolSessionRead", "dolSessionWrite", "dolSessionDestroy", "dolSessionGC");
session_set_save_handler("dolSessionOpen", "dolSessionClose", "dolSessionRead", "dolSessionWrite", "dolSessionDestroy", "dolSessionGC"); // @phpstan-ignore-line
18 changes: 10 additions & 8 deletions htdocs/core/modules/propale/mod_propale_saphir.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2007 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
* 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
Expand Down Expand Up @@ -106,19 +107,20 @@ public function info($langs)
*/
public function getExample()
{
global $conf, $langs, $mysoc;
global $mysoc, $db;

$old_code_client = $mysoc->code_client;
$old_code_type = $mysoc->typent_code;
$mysoc->code_client = 'CCCCCCCCCC';
$mysoc->typent_code = 'TTTTTTTTTT';
$numExample = $this->getNextValue($mysoc, '');
$mysoc->code_client = $old_code_client;
$mysoc->typent_code = $old_code_type;
require_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
require_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
$propal = new Propal($db);
$propal->initAsSpecimen();
$thirdparty = new Societe($db);
$thirdparty->initAsSpecimen();
$numExample = $this->getNextValue($thirdparty, $propal);

if (!$numExample) {
$numExample = 'NotConfigured';
}

return $numExample;
}

Expand Down
1 change: 1 addition & 0 deletions htdocs/societe/class/societe.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4502,6 +4502,7 @@ public function initAsSpecimen()

$this->code_client = 'CC-'.dol_print_date($now, 'dayhourlog');
$this->code_fournisseur = 'SC-'.dol_print_date($now, 'dayhourlog');
$this->typent_code = 'TE_OTHER';
$this->capital = 10000;
$this->client = 1;
$this->prospect = 1;
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ parameters:
- '#expects Adherent#'
- '#expects BOM#'
- '#expects Commande#'
- '#expects Contact#'
- '#expects Contrat#'
- '#expects Delivery#'
- '#expects Expedition#'
- '#expects FTP\\Connection#'
- '#expects Holiday#'
Expand All @@ -106,8 +108,10 @@ parameters:
- '#expects Product#'
- '#expects Facture#'
- '#expects Paiement#'
- '#expects Project#'
- '#expects PgSql\\Result#'
- '#expects RecruitmentJobPosition#'
- '#expects RemiseCheque#'
- '#expects Societe#'
- '#expects SupplierProposal#'
- '#expects Ticket#'
Expand Down

0 comments on commit b0b3358

Please sign in to comment.