Fix: Enable/fix PhanPluginPrintfIncompatibleArgumentTypeWeak occurences

# Fix: Enable/fix PhanPluginPrintfIncompatibleArgumentTypeWeak occurences

Fix the PhanPluginPrintfIncompatibleArgumentTypeWeak occurences and fix the rule
This commit is contained in:
MDW
2024-03-10 16:24:06 +01:00
parent 7755e1e0c3
commit 0f8b9e73f0
39 changed files with 82 additions and 47 deletions

View File

@@ -3,6 +3,7 @@
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* 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
@@ -156,7 +157,7 @@ class mod_pacific extends ModeleNumRefFicheinter
if ($max >= (pow(10, 4) - 1)) {
$num = $max + 1; // If counter > 9999, we do not format on 4 chars, we take number as it is
} else {
$num = sprintf("%04s", $max + 1);
$num = sprintf("%04d", $max + 1);
}
return $this->prefix.$yymm."-".$num;