浏览代码

Fix warning

Laurent Destailleur 1 年之前
父节点
当前提交
0a3bc87b72
共有 2 个文件被更改,包括 5 次插入4 次删除
  1. 4 4
      htdocs/core/modules/facture/doc/pdf_crabe.modules.php
  2. 1 0
      phpstan.neon

+ 4 - 4
htdocs/core/modules/facture/doc/pdf_crabe.modules.php

@@ -954,9 +954,9 @@ class pdf_crabe extends ModelePDFFactures
 					$y = 0;
 					$current_page++;
 					$pdf->AddPage('', '', true);
-					if (!empty($tplidx)) {
+					/*if (!empty($tplidx)) {
 						$pdf->useTemplate($tplidx);
-					}
+					}*/
 					if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) {
 						$top_shift = $this->_pagehead($pdf, $object, 0, $outputlangs);
 						$tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
@@ -1018,9 +1018,9 @@ class pdf_crabe extends ModelePDFFactures
 					$y = 0;
 					$current_page++;
 					$pdf->AddPage('', '', true);
-					if (!empty($tplidx)) {
+					/*if (!empty($tplidx)) {
 						$pdf->useTemplate($tplidx);
-					}
+					}*/
 					if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) {
 						$top_shift = $this->_pagehead($pdf, $object, 0, $outputlangs);
 						$tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);

+ 1 - 0
phpstan.neon

@@ -67,6 +67,7 @@ parameters:
 		- '#with no value type specified in iterable type array#'
 		- '#Empty array passed to foreach#'
 		- '#in isset\(\) is not nullable#'
+		- '#Sprain\\SwissQrBill\\#'
 	internalErrorsCountLimit: 50
 	cache:
 	    nodesByFileCountMax: 512