diff --git a/samples/Basic/25_In_memory_image.php b/samples/Basic/25_In_memory_image.php index 1833e683ae..b0cd8ec05c 100644 --- a/samples/Basic/25_In_memory_image.php +++ b/samples/Basic/25_In_memory_image.php @@ -40,7 +40,7 @@ $drawing = new MemoryDrawing(); $drawing->setName('Sample image'); $drawing->setDescription('Sample image'); -$drawing->setImageResource($gdImage); +$drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction(MemoryDrawing::RENDERING_JPEG); $drawing->setMimeType(MemoryDrawing::MIMETYPE_DEFAULT); $drawing->setHeight(36); @@ -56,7 +56,7 @@ $drawing = new MemoryDrawing(); $drawing->setName('Sample image'); $drawing->setDescription('Sample image'); -$drawing->setImageResource($gdImage); +$drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction(MemoryDrawing::RENDERING_JPEG); $drawing->setMimeType(MemoryDrawing::MIMETYPE_DEFAULT); $drawing->setHeight(36); diff --git a/samples/Calculations/DateTime/DAYS360.php b/samples/Calculations/DateTime/DAYS360.php index b0e2fdbb13..0963cc6208 100644 --- a/samples/Calculations/DateTime/DAYS360.php +++ b/samples/Calculations/DateTime/DAYS360.php @@ -51,7 +51,9 @@ )); $helper->log(sprintf( 'Days: %d (US) %d (European)', + /** @scrutinizer ignore-type */ $worksheet->getCell('G' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('H' . $row)->getCalculatedValue() )); } diff --git a/samples/Calculations/DateTime/EDATE.php b/samples/Calculations/DateTime/EDATE.php index be6e4d1915..d3681d4abc 100644 --- a/samples/Calculations/DateTime/EDATE.php +++ b/samples/Calculations/DateTime/EDATE.php @@ -37,6 +37,7 @@ '%s and %d months is %d (%s)', $worksheet->getCell('B' . $row)->getFormattedValue(), $worksheet->getCell('C' . $row)->getFormattedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), $worksheet->getCell('D' . $row)->getFormattedValue() )); diff --git a/samples/Calculations/DateTime/EOMONTH.php b/samples/Calculations/DateTime/EOMONTH.php index e0b7568a01..3fefcbcf4b 100644 --- a/samples/Calculations/DateTime/EOMONTH.php +++ b/samples/Calculations/DateTime/EOMONTH.php @@ -37,6 +37,7 @@ '%s and %d months is %d (%s)', $worksheet->getCell('B' . $row)->getFormattedValue(), $worksheet->getCell('C' . $row)->getFormattedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), $worksheet->getCell('D' . $row)->getFormattedValue() )); diff --git a/samples/Calculations/DateTime/NETWORKDAYS.php b/samples/Calculations/DateTime/NETWORKDAYS.php index 585c04380f..6ba3025932 100644 --- a/samples/Calculations/DateTime/NETWORKDAYS.php +++ b/samples/Calculations/DateTime/NETWORKDAYS.php @@ -60,7 +60,9 @@ 'Between %s and %s is %d working days; %d with public holidays', $worksheet->getCell('A1')->getFormattedValue(), $worksheet->getCell('B' . $row)->getFormattedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue() )); } diff --git a/samples/Calculations/DateTime/NOW.php b/samples/Calculations/DateTime/NOW.php index 858a3162b1..fb0222b17d 100644 --- a/samples/Calculations/DateTime/NOW.php +++ b/samples/Calculations/DateTime/NOW.php @@ -22,6 +22,7 @@ // Test the formulae $helper->log(sprintf( 'Today is %f (%s)', + /** @scrutinizer ignore-type */ $worksheet->getCell('A1')->getCalculatedValue(), $worksheet->getCell('A1')->getFormattedValue() )); diff --git a/samples/Calculations/DateTime/TODAY.php b/samples/Calculations/DateTime/TODAY.php index 031149d597..7f1dd0780a 100644 --- a/samples/Calculations/DateTime/TODAY.php +++ b/samples/Calculations/DateTime/TODAY.php @@ -22,6 +22,7 @@ // Test the formulae $helper->log(sprintf( 'Today is %d (%s)', + /** @scrutinizer ignore-type */ $worksheet->getCell('A1')->getCalculatedValue(), $worksheet->getCell('A1')->getFormattedValue() )); diff --git a/samples/Calculations/DateTime/WEEKDAY.php b/samples/Calculations/DateTime/WEEKDAY.php index 7d4b4288b2..7be2bbdf25 100644 --- a/samples/Calculations/DateTime/WEEKDAY.php +++ b/samples/Calculations/DateTime/WEEKDAY.php @@ -49,10 +49,12 @@ $helper->log(sprintf('(E%d): %s', $row, $worksheet->getCell('E' . $row)->getFormattedValue())); $helper->log(sprintf( 'Weekday is: %d (1-7 = Sun-Sat)', + /** @scrutinizer ignore-type */ $worksheet->getCell('F' . $row)->getCalculatedValue() )); $helper->log(sprintf( 'Weekday is: %d (1-7 = Mon-Sun)', + /** @scrutinizer ignore-type */ $worksheet->getCell('G' . $row)->getCalculatedValue() )); } diff --git a/samples/Calculations/DateTime/YEARFRAC.php b/samples/Calculations/DateTime/YEARFRAC.php index 81b36435d7..bc8edb7105 100644 --- a/samples/Calculations/DateTime/YEARFRAC.php +++ b/samples/Calculations/DateTime/YEARFRAC.php @@ -55,22 +55,27 @@ )); $helper->log(sprintf( 'Days: %f - US (NASD) 30/360', + /** @scrutinizer ignore-type */ $worksheet->getCell('G' . $row)->getCalculatedValue() )); $helper->log(sprintf( 'Days: %f - Actual', + /** @scrutinizer ignore-type */ $worksheet->getCell('H' . $row)->getCalculatedValue() )); $helper->log(sprintf( 'Days: %f - Actual/360', + /** @scrutinizer ignore-type */ $worksheet->getCell('I' . $row)->getCalculatedValue() )); $helper->log(sprintf( 'Days: %f - Actual/365', + /** @scrutinizer ignore-type */ $worksheet->getCell('J' . $row)->getCalculatedValue() )); $helper->log(sprintf( 'Days: %f - European 30/360', + /** @scrutinizer ignore-type */ $worksheet->getCell('K' . $row)->getCalculatedValue() )); } diff --git a/samples/Calculations/Engineering/BESSELI.php b/samples/Calculations/Engineering/BESSELI.php index bd5d9b7150..4962dfbbde 100644 --- a/samples/Calculations/Engineering/BESSELI.php +++ b/samples/Calculations/Engineering/BESSELI.php @@ -23,6 +23,7 @@ $helper->log(sprintf( '%s = %f', $worksheet->getCell('A1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('A1')->getCalculatedValue() )); } diff --git a/samples/Calculations/Engineering/BESSELJ.php b/samples/Calculations/Engineering/BESSELJ.php index 3aa4788682..f9a0b6a506 100644 --- a/samples/Calculations/Engineering/BESSELJ.php +++ b/samples/Calculations/Engineering/BESSELJ.php @@ -23,6 +23,7 @@ $helper->log(sprintf( '%s = %f', $worksheet->getCell('A1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('A1')->getCalculatedValue() )); } diff --git a/samples/Calculations/Engineering/BESSELK.php b/samples/Calculations/Engineering/BESSELK.php index ee8698e94a..7f5cc20ca8 100644 --- a/samples/Calculations/Engineering/BESSELK.php +++ b/samples/Calculations/Engineering/BESSELK.php @@ -23,6 +23,7 @@ $helper->log(sprintf( '%s = %f', $worksheet->getCell('A1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('A1')->getCalculatedValue() )); } diff --git a/samples/Calculations/Engineering/BESSELY.php b/samples/Calculations/Engineering/BESSELY.php index 750b7204bc..626177218e 100644 --- a/samples/Calculations/Engineering/BESSELY.php +++ b/samples/Calculations/Engineering/BESSELY.php @@ -23,6 +23,7 @@ $helper->log(sprintf( '%s = %f', $worksheet->getCell('A1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('A1')->getCalculatedValue() )); } diff --git a/samples/Calculations/Engineering/BIN2DEC.php b/samples/Calculations/Engineering/BIN2DEC.php index 0c4c45324c..9117bef923 100644 --- a/samples/Calculations/Engineering/BIN2DEC.php +++ b/samples/Calculations/Engineering/BIN2DEC.php @@ -41,6 +41,7 @@ '(B%d): Binary %s is decimal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BIN2HEX.php b/samples/Calculations/Engineering/BIN2HEX.php index 51a1119977..072cf28e43 100644 --- a/samples/Calculations/Engineering/BIN2HEX.php +++ b/samples/Calculations/Engineering/BIN2HEX.php @@ -41,6 +41,7 @@ '(B%d): Binary %s is hexadecimal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BIN2OCT.php b/samples/Calculations/Engineering/BIN2OCT.php index c320d360a4..01c6325311 100644 --- a/samples/Calculations/Engineering/BIN2OCT.php +++ b/samples/Calculations/Engineering/BIN2OCT.php @@ -41,6 +41,7 @@ '(B%d): Binary %s is octal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BITAND.php b/samples/Calculations/Engineering/BITAND.php index 2a8f7a3cc5..1fa82f1a47 100644 --- a/samples/Calculations/Engineering/BITAND.php +++ b/samples/Calculations/Engineering/BITAND.php @@ -40,10 +40,14 @@ '(E%d): Bitwise AND of %d (%s) and %d (%s) is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('E' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('F' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BITLSHIFT.php b/samples/Calculations/Engineering/BITLSHIFT.php index 872c8098db..4c8cfefd9f 100644 --- a/samples/Calculations/Engineering/BITLSHIFT.php +++ b/samples/Calculations/Engineering/BITLSHIFT.php @@ -42,24 +42,33 @@ '(E%d): Bitwise Left Shift of %d (%s) by 1 bit is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), )); $helper->log(sprintf( '(E%d): Bitwise Left Shift of %d (%s) by 2 bits is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('E' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('F' . $row)->getCalculatedValue(), )); $helper->log(sprintf( '(E%d): Bitwise Left Shift of %d (%s) by 3 bits is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('G' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('H' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BITOR.php b/samples/Calculations/Engineering/BITOR.php index 1bf7f71d11..f8cf3f2a07 100644 --- a/samples/Calculations/Engineering/BITOR.php +++ b/samples/Calculations/Engineering/BITOR.php @@ -40,10 +40,14 @@ '(E%d): Bitwise OR of %d (%s) and %d (%s) is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('E' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('F' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BITRSHIFT.php b/samples/Calculations/Engineering/BITRSHIFT.php index 3e7f3a88d5..bc8774a886 100644 --- a/samples/Calculations/Engineering/BITRSHIFT.php +++ b/samples/Calculations/Engineering/BITRSHIFT.php @@ -40,24 +40,33 @@ '(E%d): Bitwise Right Shift of %d (%s) by 1 bit is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), )); $helper->log(sprintf( '(E%d): Bitwise Right Shift of %d (%s) by 2 bits is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('E' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('F' . $row)->getCalculatedValue(), )); $helper->log(sprintf( '(E%d): Bitwise Right Shift of %d (%s) by 3 bits is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('G' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('H' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/BITXOR.php b/samples/Calculations/Engineering/BITXOR.php index 482662cd78..84098b9792 100644 --- a/samples/Calculations/Engineering/BITXOR.php +++ b/samples/Calculations/Engineering/BITXOR.php @@ -40,10 +40,14 @@ '(E%d): Bitwise XOR of %d (%s) and %d (%s) is %d (%s)', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('E' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('F' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/COMPLEX.php b/samples/Calculations/Engineering/COMPLEX.php index c58a179777..bf88a2a39f 100644 --- a/samples/Calculations/Engineering/COMPLEX.php +++ b/samples/Calculations/Engineering/COMPLEX.php @@ -36,6 +36,7 @@ '(A%d): Formula %s result is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('A' . $row)->getCalculatedValue() )); } diff --git a/samples/Calculations/Engineering/CONVERT.php b/samples/Calculations/Engineering/CONVERT.php index bce56ba507..38fd47c9ce 100644 --- a/samples/Calculations/Engineering/CONVERT.php +++ b/samples/Calculations/Engineering/CONVERT.php @@ -43,6 +43,7 @@ $worksheet->getCell('D' . $row)->getValue(), $worksheet->getCell('A' . $row)->getValue(), trim($worksheet->getCell('B' . $row)->getValue(), '"'), + /** @scrutinizer ignore-type */ $worksheet->getCell('D' . $row)->getCalculatedValue(), trim($worksheet->getCell('C' . $row)->getValue(), '"') )); @@ -54,5 +55,6 @@ '(A%d): Unit of Measure Conversion Formula %s result is %s', $row, $worksheet->getCell('H1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('H1')->getCalculatedValue() )); diff --git a/samples/Calculations/Engineering/DEC2BIN.php b/samples/Calculations/Engineering/DEC2BIN.php index 2a064c0616..1d7e4c86ae 100644 --- a/samples/Calculations/Engineering/DEC2BIN.php +++ b/samples/Calculations/Engineering/DEC2BIN.php @@ -42,6 +42,7 @@ '(B%d): Decimal %s is binary %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/DEC2HEX.php b/samples/Calculations/Engineering/DEC2HEX.php index 0a19ae544d..ac00996d20 100644 --- a/samples/Calculations/Engineering/DEC2HEX.php +++ b/samples/Calculations/Engineering/DEC2HEX.php @@ -43,6 +43,7 @@ '(B%d): Decimal %s is hexadecimal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/DEC2OCT.php b/samples/Calculations/Engineering/DEC2OCT.php index fc11a832bb..9eb80594bc 100644 --- a/samples/Calculations/Engineering/DEC2OCT.php +++ b/samples/Calculations/Engineering/DEC2OCT.php @@ -43,6 +43,7 @@ '(B%d): Decimal %s is octal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/DELTA.php b/samples/Calculations/Engineering/DELTA.php index cd51b16165..579b5e6a70 100644 --- a/samples/Calculations/Engineering/DELTA.php +++ b/samples/Calculations/Engineering/DELTA.php @@ -40,7 +40,9 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), + /** @scrutinizer ignore-type */ $comparison[$worksheet->getCell('C' . $row)->getCalculatedValue()] )); } diff --git a/samples/Calculations/Engineering/ERF.php b/samples/Calculations/Engineering/ERF.php index e650588893..310db12aa1 100644 --- a/samples/Calculations/Engineering/ERF.php +++ b/samples/Calculations/Engineering/ERF.php @@ -50,6 +50,7 @@ $row, $worksheet->getCell('C' . $row)->getValue(), $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } @@ -62,6 +63,7 @@ $worksheet->getCell('C' . $row)->getValue(), $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/ERFC.php b/samples/Calculations/Engineering/ERFC.php index 5e7bcc6d08..59a2cec8e0 100644 --- a/samples/Calculations/Engineering/ERFC.php +++ b/samples/Calculations/Engineering/ERFC.php @@ -36,6 +36,7 @@ $row, $worksheet->getCell('C' . $row)->getValue(), $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/GESTEP.php b/samples/Calculations/Engineering/GESTEP.php index 73f0a31cea..ccc44e23a8 100644 --- a/samples/Calculations/Engineering/GESTEP.php +++ b/samples/Calculations/Engineering/GESTEP.php @@ -43,8 +43,10 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), sprintf( + /** @scrutinizer ignore-type */ $comparison[$worksheet->getCell('C' . $row)->getCalculatedValue()], $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), diff --git a/samples/Calculations/Engineering/HEX2BIN.php b/samples/Calculations/Engineering/HEX2BIN.php index 2ad0892565..55dfc1f519 100644 --- a/samples/Calculations/Engineering/HEX2BIN.php +++ b/samples/Calculations/Engineering/HEX2BIN.php @@ -41,6 +41,7 @@ '(B%d): Hexadecimal %s is binary %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/HEX2DEC.php b/samples/Calculations/Engineering/HEX2DEC.php index 745d411054..eee19de880 100644 --- a/samples/Calculations/Engineering/HEX2DEC.php +++ b/samples/Calculations/Engineering/HEX2DEC.php @@ -43,6 +43,7 @@ '(B%d): Hexadecimal %s is decimal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/HEX2OCT.php b/samples/Calculations/Engineering/HEX2OCT.php index 3608c1bb3e..e1f72cc165 100644 --- a/samples/Calculations/Engineering/HEX2OCT.php +++ b/samples/Calculations/Engineering/HEX2OCT.php @@ -41,6 +41,7 @@ '(B%d): Hexadecimal %s is octal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMABS.php b/samples/Calculations/Engineering/IMABS.php index 9c6b843cde..706ffac886 100644 --- a/samples/Calculations/Engineering/IMABS.php +++ b/samples/Calculations/Engineering/IMABS.php @@ -43,6 +43,7 @@ '(E%d): The absolute value of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMAGINARY.php b/samples/Calculations/Engineering/IMAGINARY.php index 9913893855..3f5479675e 100644 --- a/samples/Calculations/Engineering/IMAGINARY.php +++ b/samples/Calculations/Engineering/IMAGINARY.php @@ -43,6 +43,7 @@ '(E%d): The imaginary component of %s is %f', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMARGUMENT.php b/samples/Calculations/Engineering/IMARGUMENT.php index e559e95133..dabd90f61b 100644 --- a/samples/Calculations/Engineering/IMARGUMENT.php +++ b/samples/Calculations/Engineering/IMARGUMENT.php @@ -43,6 +43,7 @@ '(E%d): The Theta Argument of %s is %f radians', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMCONJUGATE.php b/samples/Calculations/Engineering/IMCONJUGATE.php index 3b4429ed06..2038d58d78 100644 --- a/samples/Calculations/Engineering/IMCONJUGATE.php +++ b/samples/Calculations/Engineering/IMCONJUGATE.php @@ -43,6 +43,7 @@ '(E%d): The Conjugate of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMCOS.php b/samples/Calculations/Engineering/IMCOS.php index 5b8f81ea3c..ef4ee3261f 100644 --- a/samples/Calculations/Engineering/IMCOS.php +++ b/samples/Calculations/Engineering/IMCOS.php @@ -43,6 +43,7 @@ '(E%d): The Cosine of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMCOSH.php b/samples/Calculations/Engineering/IMCOSH.php index 9a39376642..e0faa0c13d 100644 --- a/samples/Calculations/Engineering/IMCOSH.php +++ b/samples/Calculations/Engineering/IMCOSH.php @@ -43,6 +43,7 @@ '(E%d): The Hyperbolic Cosine of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMCOT.php b/samples/Calculations/Engineering/IMCOT.php index e3d980cd20..3aded47e09 100644 --- a/samples/Calculations/Engineering/IMCOT.php +++ b/samples/Calculations/Engineering/IMCOT.php @@ -43,6 +43,7 @@ '(E%d): The Cotangent of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMCSC.php b/samples/Calculations/Engineering/IMCSC.php index ab6695d06c..4101fb6e74 100644 --- a/samples/Calculations/Engineering/IMCSC.php +++ b/samples/Calculations/Engineering/IMCSC.php @@ -43,6 +43,7 @@ '(E%d): The Cosecant of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMCSCH.php b/samples/Calculations/Engineering/IMCSCH.php index 4513d9e94e..e25878ff72 100644 --- a/samples/Calculations/Engineering/IMCSCH.php +++ b/samples/Calculations/Engineering/IMCSCH.php @@ -43,6 +43,7 @@ '(E%d): The Hyperbolic Cosecant of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMDIV.php b/samples/Calculations/Engineering/IMDIV.php index 9512be573c..e8c0292f9b 100644 --- a/samples/Calculations/Engineering/IMDIV.php +++ b/samples/Calculations/Engineering/IMDIV.php @@ -37,6 +37,7 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMEXP.php b/samples/Calculations/Engineering/IMEXP.php index 7f5837b239..484edf20d7 100644 --- a/samples/Calculations/Engineering/IMEXP.php +++ b/samples/Calculations/Engineering/IMEXP.php @@ -43,6 +43,7 @@ '(E%d): The Exponential of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMLN.php b/samples/Calculations/Engineering/IMLN.php index 956182573a..eb7afe974f 100644 --- a/samples/Calculations/Engineering/IMLN.php +++ b/samples/Calculations/Engineering/IMLN.php @@ -43,6 +43,7 @@ '(E%d): The Natural Logarithm of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMLOG10.php b/samples/Calculations/Engineering/IMLOG10.php index d501c3deda..8adba66d71 100644 --- a/samples/Calculations/Engineering/IMLOG10.php +++ b/samples/Calculations/Engineering/IMLOG10.php @@ -43,6 +43,7 @@ '(E%d): The Base-10 Logarithm of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMLOG2.php b/samples/Calculations/Engineering/IMLOG2.php index 25986b3986..311b394335 100644 --- a/samples/Calculations/Engineering/IMLOG2.php +++ b/samples/Calculations/Engineering/IMLOG2.php @@ -43,6 +43,7 @@ '(E%d): The Base-2 Logarithm of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMPOWER.php b/samples/Calculations/Engineering/IMPOWER.php index c6674fbe95..55037b7fc2 100644 --- a/samples/Calculations/Engineering/IMPOWER.php +++ b/samples/Calculations/Engineering/IMPOWER.php @@ -44,6 +44,7 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMPRODUCT.php b/samples/Calculations/Engineering/IMPRODUCT.php index f81bc66684..fa2c3d937e 100644 --- a/samples/Calculations/Engineering/IMPRODUCT.php +++ b/samples/Calculations/Engineering/IMPRODUCT.php @@ -37,6 +37,7 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMREAL.php b/samples/Calculations/Engineering/IMREAL.php index 4e537c0fd7..232c5c43a5 100644 --- a/samples/Calculations/Engineering/IMREAL.php +++ b/samples/Calculations/Engineering/IMREAL.php @@ -43,6 +43,7 @@ '(E%d): The real component of %s is %f radians', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSEC.php b/samples/Calculations/Engineering/IMSEC.php index e6c524b3ca..83bdc27fcb 100644 --- a/samples/Calculations/Engineering/IMSEC.php +++ b/samples/Calculations/Engineering/IMSEC.php @@ -43,6 +43,7 @@ '(E%d): The Secant of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSECH.php b/samples/Calculations/Engineering/IMSECH.php index e07b6e08e4..5e156e5b50 100644 --- a/samples/Calculations/Engineering/IMSECH.php +++ b/samples/Calculations/Engineering/IMSECH.php @@ -43,6 +43,7 @@ '(E%d): The Hyperbolic Secant of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSIN.php b/samples/Calculations/Engineering/IMSIN.php index d3b8c281d9..18c17af1b6 100644 --- a/samples/Calculations/Engineering/IMSIN.php +++ b/samples/Calculations/Engineering/IMSIN.php @@ -43,6 +43,7 @@ '(E%d): The Sine of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSINH.php b/samples/Calculations/Engineering/IMSINH.php index ac0a9039be..94ef2e20e1 100644 --- a/samples/Calculations/Engineering/IMSINH.php +++ b/samples/Calculations/Engineering/IMSINH.php @@ -43,6 +43,7 @@ '(E%d): The Hyperbolic Sine of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSQRT.php b/samples/Calculations/Engineering/IMSQRT.php index c2573c9197..a12b5582b7 100644 --- a/samples/Calculations/Engineering/IMSQRT.php +++ b/samples/Calculations/Engineering/IMSQRT.php @@ -43,6 +43,7 @@ '(E%d): The Square Root of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSUB.php b/samples/Calculations/Engineering/IMSUB.php index 90bd27a4f0..194b7063a2 100644 --- a/samples/Calculations/Engineering/IMSUB.php +++ b/samples/Calculations/Engineering/IMSUB.php @@ -37,6 +37,7 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMSUM.php b/samples/Calculations/Engineering/IMSUM.php index 2a8be32070..51f702a56b 100644 --- a/samples/Calculations/Engineering/IMSUM.php +++ b/samples/Calculations/Engineering/IMSUM.php @@ -37,6 +37,7 @@ $row, $worksheet->getCell('A' . $row)->getValue(), $worksheet->getCell('B' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('C' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/IMTAN.php b/samples/Calculations/Engineering/IMTAN.php index ffaa53b246..5f083a8031 100644 --- a/samples/Calculations/Engineering/IMTAN.php +++ b/samples/Calculations/Engineering/IMTAN.php @@ -43,6 +43,7 @@ '(E%d): The Tangent of %s is %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/OCT2BIN.php b/samples/Calculations/Engineering/OCT2BIN.php index 9c4bbf863d..9c116f3434 100644 --- a/samples/Calculations/Engineering/OCT2BIN.php +++ b/samples/Calculations/Engineering/OCT2BIN.php @@ -42,6 +42,7 @@ '(B%d): Octal %s is binary %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/OCT2DEC.php b/samples/Calculations/Engineering/OCT2DEC.php index ea6afb2fb7..6b1eec9fc7 100644 --- a/samples/Calculations/Engineering/OCT2DEC.php +++ b/samples/Calculations/Engineering/OCT2DEC.php @@ -44,6 +44,7 @@ '(B%d): Octal %s is decimal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/Calculations/Engineering/OCT2HEX.php b/samples/Calculations/Engineering/OCT2HEX.php index 47e9b6e16d..2407c86fa9 100644 --- a/samples/Calculations/Engineering/OCT2HEX.php +++ b/samples/Calculations/Engineering/OCT2HEX.php @@ -44,6 +44,7 @@ '(B%d): Octal %s is hexadecimal %s', $row, $worksheet->getCell('A' . $row)->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B' . $row)->getCalculatedValue(), )); } diff --git a/samples/DefinedNames/AbsoluteNamedRange.php b/samples/DefinedNames/AbsoluteNamedRange.php index 30afc00d65..492249dd10 100644 --- a/samples/DefinedNames/AbsoluteNamedRange.php +++ b/samples/DefinedNames/AbsoluteNamedRange.php @@ -46,8 +46,10 @@ $helper->log(sprintf( 'Worked %.2f hours at a rate of %.2f - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $worksheet->getCell('B1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); diff --git a/samples/DefinedNames/NamedFormulaeAndRanges.php b/samples/DefinedNames/NamedFormulaeAndRanges.php index a5ca80e706..43a5832ec3 100644 --- a/samples/DefinedNames/NamedFormulaeAndRanges.php +++ b/samples/DefinedNames/NamedFormulaeAndRanges.php @@ -57,8 +57,10 @@ $helper->log(sprintf( 'Worked %.2f hours at a rate of %.2f - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $worksheet->getCell('B1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); diff --git a/samples/DefinedNames/RelativeNamedRange.php b/samples/DefinedNames/RelativeNamedRange.php index fac75a4715..f6fb0968f7 100644 --- a/samples/DefinedNames/RelativeNamedRange.php +++ b/samples/DefinedNames/RelativeNamedRange.php @@ -49,8 +49,10 @@ $helper->log(sprintf( 'Worked %.2f hours at a rate of %.2f - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $worksheet->getCell('B1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); diff --git a/samples/DefinedNames/RelativeNamedRange2.php b/samples/DefinedNames/RelativeNamedRange2.php index b3e957fd2e..fa0e279757 100644 --- a/samples/DefinedNames/RelativeNamedRange2.php +++ b/samples/DefinedNames/RelativeNamedRange2.php @@ -52,8 +52,10 @@ $helper->log(sprintf( 'Worked %.2f hours at a rate of %.2f - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $worksheet->getCell('B1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); diff --git a/samples/DefinedNames/RelativeNamedRangeAsFunction.php b/samples/DefinedNames/RelativeNamedRangeAsFunction.php index 333d01ab0b..4797615e75 100644 --- a/samples/DefinedNames/RelativeNamedRangeAsFunction.php +++ b/samples/DefinedNames/RelativeNamedRangeAsFunction.php @@ -55,8 +55,10 @@ $helper->log(sprintf( 'Worked %.2f hours at a rate of %.2f - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $worksheet->getCell('B1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); diff --git a/samples/DefinedNames/ScopedNamedRange.php b/samples/DefinedNames/ScopedNamedRange.php index aa71454df0..776a8589df 100644 --- a/samples/DefinedNames/ScopedNamedRange.php +++ b/samples/DefinedNames/ScopedNamedRange.php @@ -62,10 +62,12 @@ $helper->log(sprintf( 'Worked %.2f hours at a rate of %s - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $chargeRateCellValue = $spreadsheet ->getSheetByName($spreadsheet->getNamedRange('CHARGE_RATE')->getWorksheet()->getTitle()) ->getCell($spreadsheet->getNamedRange('CHARGE_RATE')->getCellsInRange()[0])->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); diff --git a/samples/DefinedNames/ScopedNamedRange2.php b/samples/DefinedNames/ScopedNamedRange2.php index 5f0898c91e..e4ec13a5ff 100644 --- a/samples/DefinedNames/ScopedNamedRange2.php +++ b/samples/DefinedNames/ScopedNamedRange2.php @@ -78,9 +78,11 @@ foreach ($spreadsheet->getAllSheets() as $worksheet) { $helper->log(sprintf( 'Worked %.2f hours for "%s" at a rate of %.2f - Charge to the client is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell("B{$row}")->getCalculatedValue(), $worksheet->getTitle(), $worksheet->getCell('B1')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell("C{$row}")->getCalculatedValue() )); } diff --git a/samples/DefinedNames/SimpleNamedFormula.php b/samples/DefinedNames/SimpleNamedFormula.php index ea1f802da1..c327f56c4c 100644 --- a/samples/DefinedNames/SimpleNamedFormula.php +++ b/samples/DefinedNames/SimpleNamedFormula.php @@ -34,9 +34,12 @@ $helper->log(sprintf( 'With a Tax Rate of %.2f and a net price of %.2f, Tax is %.2f and the gross price is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell('B1')->getCalculatedValue(), $worksheet->getCell('B3')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B4')->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B5')->getCalculatedValue() )); diff --git a/samples/DefinedNames/SimpleNamedRange.php b/samples/DefinedNames/SimpleNamedRange.php index 7a7cdc94a1..c725f1b1cb 100644 --- a/samples/DefinedNames/SimpleNamedRange.php +++ b/samples/DefinedNames/SimpleNamedRange.php @@ -28,9 +28,12 @@ $helper->log(sprintf( 'With a Tax Rate of %.2f and a net price of %.2f, Tax is %.2f and the gross price is %.2f', + /** @scrutinizer ignore-type */ $worksheet->getCell('B1')->getCalculatedValue(), $worksheet->getCell('B3')->getValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B4')->getCalculatedValue(), + /** @scrutinizer ignore-type */ $worksheet->getCell('B5')->getCalculatedValue() )); diff --git a/samples/Reader/20_Reader_worksheet_hyperlink_image.php b/samples/Reader/20_Reader_worksheet_hyperlink_image.php index 2b3f294a6f..95a9829ede 100644 --- a/samples/Reader/20_Reader_worksheet_hyperlink_image.php +++ b/samples/Reader/20_Reader_worksheet_hyperlink_image.php @@ -25,7 +25,7 @@ $drawing->setName('In-Memory image 1'); $drawing->setDescription('In-Memory image 1'); $drawing->setCoordinates('A1'); -$drawing->setImageResource($gdImage); +$drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction( \PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing::RENDERING_JPEG ); diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/HyperlinkTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/HyperlinkTest.php index 5eaf7d35eb..5e8420e14e 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/HyperlinkTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/LookupRef/HyperlinkTest.php @@ -9,13 +9,12 @@ class HyperlinkTest extends AllSetupTeardown { - /** @var bool */ - protected $issue2464 = true; + private bool $issue2464 = true; /** * @dataProvider providerHYPERLINK */ - public function testHYPERLINK(array|string $expectedResult, ?string $linkUrl, ?string $description): void + public function testHYPERLINK(mixed $expectedResult, ?string $linkUrl, ?string $description): void { $this->mightHaveException($expectedResult); $sheet = $this->getSheet(); @@ -43,7 +42,7 @@ public function testHYPERLINK(array|string $expectedResult, ?string $linkUrl, ?s /** * @dataProvider providerHYPERLINK */ - public function testHYPERLINKcellRef(array|string $expectedResult, ?string $linkUrl, ?string $description): void + public function testHYPERLINKcellRef(mixed $expectedResult, ?string $linkUrl, ?string $description): void { $this->mightHaveException($expectedResult); $sheet = $this->getSheet(); diff --git a/tests/PhpSpreadsheetTests/Calculation/Functions/TextData/TextSplitTest.php b/tests/PhpSpreadsheetTests/Calculation/Functions/TextData/TextSplitTest.php index 9801d77d4b..985e08567d 100644 --- a/tests/PhpSpreadsheetTests/Calculation/Functions/TextData/TextSplitTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/Functions/TextData/TextSplitTest.php @@ -14,7 +14,7 @@ private function setDelimiterArgument(array $argument, string $column): string return '{' . $column . implode(',' . $column, range(1, count($argument))) . '}'; } - private function setDelimiterValues(Worksheet $worksheet, string $column, array|string $argument): void + private function setDelimiterValues(Worksheet $worksheet, string $column, mixed $argument): void { if (is_array($argument)) { foreach ($argument as $index => $value) { diff --git a/tests/PhpSpreadsheetTests/Functional/DrawingImageHyperlinkTest.php b/tests/PhpSpreadsheetTests/Functional/DrawingImageHyperlinkTest.php index 711f87e24a..393af1f88c 100644 --- a/tests/PhpSpreadsheetTests/Functional/DrawingImageHyperlinkTest.php +++ b/tests/PhpSpreadsheetTests/Functional/DrawingImageHyperlinkTest.php @@ -27,7 +27,7 @@ public function testDrawingImageHyperlinkTest(): void $drawing->setName('In-Memory image 1'); $drawing->setDescription('In-Memory image 1'); $drawing->setCoordinates('A1'); - $drawing->setImageResource($gdImage); + $drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction( MemoryDrawing::RENDERING_JPEG ); diff --git a/tests/PhpSpreadsheetTests/Reader/Xls/XlsTest.php b/tests/PhpSpreadsheetTests/Reader/Xls/XlsTest.php index 4cdfc06f68..78b9539e45 100644 --- a/tests/PhpSpreadsheetTests/Reader/Xls/XlsTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Xls/XlsTest.php @@ -80,8 +80,9 @@ public function testLoadXlsBug1592(): void foreach ($row->getCellIterator() as $cellx) { /** @var Cell */ $cell = $cellx; + /** @scrutinizer ignore-call */ $valOld = $cell->getFormattedValue(); - $valNew = $newsheet->getCell($cell->getCoordinate())->getFormattedValue(); + $valNew = $newsheet->getCell($cell->/** @scrutinizer ignore-call */ getCoordinate())->getFormattedValue(); self::assertEquals($valOld, $valNew); } } diff --git a/tests/PhpSpreadsheetTests/Worksheet/DrawingTest.php b/tests/PhpSpreadsheetTests/Worksheet/DrawingTest.php index 4ab1ca2e29..668a6b5c66 100644 --- a/tests/PhpSpreadsheetTests/Worksheet/DrawingTest.php +++ b/tests/PhpSpreadsheetTests/Worksheet/DrawingTest.php @@ -28,7 +28,7 @@ public function testCloningWorksheetWithImages(): void $drawing->setName('In-Memory image 1'); $drawing->setDescription('In-Memory image 1'); $drawing->setCoordinates('A1'); - $drawing->setImageResource($gdImage); + $drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction( MemoryDrawing::RENDERING_JPEG ); diff --git a/tests/PhpSpreadsheetTests/Worksheet/MemoryDrawingTest.php b/tests/PhpSpreadsheetTests/Worksheet/MemoryDrawingTest.php index 3074961436..313f856564 100644 --- a/tests/PhpSpreadsheetTests/Worksheet/MemoryDrawingTest.php +++ b/tests/PhpSpreadsheetTests/Worksheet/MemoryDrawingTest.php @@ -26,7 +26,7 @@ public function testMemoryDrawing(): void $drawing->setName($name); $drawing->setDescription('In-Memory image 1'); $drawing->setCoordinates('A1'); - $drawing->setImageResource($gdImage); + $drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction(MemoryDrawing::RENDERING_PNG); $drawing->setMimeType(MemoryDrawing::MIMETYPE_PNG); diff --git a/tests/PhpSpreadsheetTests/Writer/Html/MemoryDrawingOffsetTest.php b/tests/PhpSpreadsheetTests/Writer/Html/MemoryDrawingOffsetTest.php index ab2baea817..ac6353cf24 100644 --- a/tests/PhpSpreadsheetTests/Writer/Html/MemoryDrawingOffsetTest.php +++ b/tests/PhpSpreadsheetTests/Writer/Html/MemoryDrawingOffsetTest.php @@ -24,7 +24,7 @@ public function testMemoryDrawingOffset(int $w, int $h, int $x, int $y): void $image = imagecreatefromstring($image); self::assertNotFalse($image, 'unable to create image from string'); $drawing = new MemoryDrawing(); - $drawing->setImageResource($image) + $drawing->setImageResource(/** @scrutinizer ignore-type */ $image) ->setResizeProportional(false) //是否保持比例 ->setWidthAndHeight($w, $h) //图片宽高,原始尺寸 100*100 ->setOffsetX($x) diff --git a/tests/PhpSpreadsheetTests/Writer/Xlsx/DrawingsTest.php b/tests/PhpSpreadsheetTests/Writer/Xlsx/DrawingsTest.php index 26c55a0560..eb5308a9cb 100644 --- a/tests/PhpSpreadsheetTests/Writer/Xlsx/DrawingsTest.php +++ b/tests/PhpSpreadsheetTests/Writer/Xlsx/DrawingsTest.php @@ -588,7 +588,7 @@ public function testMemoryDrawingDuplicateResource(): void $drawing->setCoordinates2('D' . ((4 * $i) + 4)); $drawing->setEditAs($mode); - $drawing->setImageResource($gdImage); + $drawing->setImageResource(/** @scrutinizer ignore-type */ $gdImage); $drawing->setRenderingFunction( MemoryDrawing::RENDERING_JPEG ); diff --git a/tests/PhpSpreadsheetTests/Writer/Xlsx/MemoryDrawingTest.php b/tests/PhpSpreadsheetTests/Writer/Xlsx/MemoryDrawingTest.php index 67380e1ba8..885d599f39 100644 --- a/tests/PhpSpreadsheetTests/Writer/Xlsx/MemoryDrawingTest.php +++ b/tests/PhpSpreadsheetTests/Writer/Xlsx/MemoryDrawingTest.php @@ -56,7 +56,7 @@ public function testIssue3624(): void if ($gdImage === false) { self::fail('unexpected failure in imagecreatefromstring'); } else { - self::assertTrue(self::checkTransparent($gdImage)); + self::assertTrue(self::checkTransparent(/** @scrutinizer ignore-type */ $gdImage)); } } else { self::fail('Unexpected drawing not in Drawing class');