Skip to content

Commit

Permalink
Tag deprecations for MathTrig, and eliminate calls to the deprecated …
Browse files Browse the repository at this point in the history
…methods (#2005)

* Tag deprecations for MathTrig, and eliminate calls to the deprecated methods
  • Loading branch information
Mark Baker authored Apr 18, 2021
1 parent 818b993 commit f49a951
Show file tree
Hide file tree
Showing 11 changed files with 323 additions and 128 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -1555,11 +1555,6 @@ parameters:
count: 1
path: src/PhpSpreadsheet/Calculation/Statistical/Distributions/ChiSquared.php

-
message: "#^Binary operation \"\\*\" between int\\|string and int\\|string results in an error\\.$#"
count: 1
path: src/PhpSpreadsheet/Calculation/Statistical/Distributions/HyperGeometric.php

-
message: "#^Method PhpOffice\\\\PhpSpreadsheet\\\\Calculation\\\\Statistical\\\\Distributions\\\\Normal\\:\\:inverseNcdf\\(\\) has no return typehint specified\\.$#"
count: 1
Expand Down
6 changes: 3 additions & 3 deletions src/PhpSpreadsheet/Calculation/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ class Calculation
],
'MDETERM' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig\MatrixFunctions::class, 'funcMDeterm'],
'functionCall' => [MathTrig\MatrixFunctions::class, 'determinant'],
'argumentCount' => '1',
],
'MDURATION' => [
Expand Down Expand Up @@ -1686,7 +1686,7 @@ class Calculation
],
'MINVERSE' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig\MatrixFunctions::class, 'funcMinverse'],
'functionCall' => [MathTrig\MatrixFunctions::class, 'inverse'],
'argumentCount' => '1',
],
'MIRR' => [
Expand All @@ -1696,7 +1696,7 @@ class Calculation
],
'MMULT' => [
'category' => Category::CATEGORY_MATH_AND_TRIG,
'functionCall' => [MathTrig\MatrixFunctions::class, 'funcMMult'],
'functionCall' => [MathTrig\MatrixFunctions::class, 'multiply'],
'argumentCount' => '2',
],
'MOD' => [
Expand Down
Loading

0 comments on commit f49a951

Please sign in to comment.