Skip to content

Commit fd275d5

Browse files
authored
Merge branch 'master' into issue4451
2 parents 7b38d8c + 0e570a5 commit fd275d5

File tree

202 files changed

+1804
-506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+1804
-506
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ and this project adheres to [Semantic Versioning](https://semver.org).
3030
### Fixed
3131

3232
- Micro-optimization for excelToDateTimeObject. [Issue #4438](https://github.com/PHPOffice/PhpSpreadsheet/issues/4438) [PR #4442](https://github.com/PHPOffice/PhpSpreadsheet/pull/4442)
33+
- Removing Columns/Rows Containing Merged Cells. [Issue #282](https://github.com/PHPOffice/PhpSpreadsheet/issues/282) [PR #4465](https://github.com/PHPOffice/PhpSpreadsheet/pull/4465)
3334
- Print Area and Row Break. [Issue #1275](https://github.com/PHPOffice/PhpSpreadsheet/issues/1275) [PR #4450](https://github.com/PHPOffice/PhpSpreadsheet/pull/4450)
3435
- Xls Writer Treat Hyperlink Starting with # as Internal. [Issue #56](https://github.com/PHPOffice/PhpSpreadsheet/issues/56) [PR #4453](https://github.com/PHPOffice/PhpSpreadsheet/pull/4453)
36+
- ODS Handling of Ceiling and Floor. [Issue #407](https://github.com/PHPOffice/PhpSpreadsheet/issues/407) [PR #4466](https://github.com/PHPOffice/PhpSpreadsheet/pull/4466)
3537

3638
## 2025-04-16 - 4.2.0
3739

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Use [composer](https://getcomposer.org) to install PhpSpreadsheet into your proj
5151
composer require phpoffice/phpspreadsheet
5252
```
5353

54-
Or also download the documentation and samples if you plan to use them:
54+
Or also download the documentation and samples if you plan to use them (note that `git` must be in your path for this to work):
5555

5656
```sh
5757
composer require phpoffice/phpspreadsheet --prefer-source

infra/DocumentGenerator.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99

1010
class DocumentGenerator
1111
{
12+
private const EXCLUDED_FUNCTIONS = [
13+
'CEILING.ODS',
14+
'CEILING.XCL',
15+
'FLOOR.ODS',
16+
'FLOOR.XCL',
17+
];
18+
1219
/**
1320
* @param array<string, array{category: string, functionCall: string|string[], argumentCount: string, passCellReference?: bool, passByReference?: bool[], custom?: bool}> $phpSpreadsheetFunctions
1421
*/
@@ -23,6 +30,9 @@ public static function generateFunctionListByCategory($phpSpreadsheetFunctions):
2330
$result .= self::tableRow($lengths, ['Excel Function', 'PhpSpreadsheet Function']) . "\n";
2431
$result .= self::tableRow($lengths, null) . "\n";
2532
foreach ($phpSpreadsheetFunctions as $excelFunction => $functionInfo) {
33+
if (in_array($excelFunction, self::EXCLUDED_FUNCTIONS, true)) {
34+
continue;
35+
}
2636
if ($category === $functionInfo['category']) {
2737
$phpFunction = self::getPhpSpreadsheetFunctionText($functionInfo['functionCall']);
2838
$result .= self::tableRow($lengths, [$excelFunction, $phpFunction]) . "\n";
@@ -87,6 +97,9 @@ public static function generateFunctionListByName(array $phpSpreadsheetFunctions
8797
$result = "# Function list by name\n";
8898
$lastAlphabet = null;
8999
foreach ($phpSpreadsheetFunctions as $excelFunction => $functionInfo) {
100+
if (in_array($excelFunction, self::EXCLUDED_FUNCTIONS, true)) {
101+
continue;
102+
}
90103
$lengths = [25, 31, 37];
91104
if ($lastAlphabet !== $excelFunction[0]) {
92105
$lastAlphabet = $excelFunction[0];

phpstan-baseline.neon

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,61 @@
11
parameters:
2-
ignoreErrors: []
2+
ignoreErrors:
3+
-
4+
message: '#^Method PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Sum\:\:sumErroringStrings\(\) should return array\|float\|int\|string but returns mixed\.$#'
5+
identifier: return.type
6+
count: 1
7+
path: src/PhpSpreadsheet/Calculation/MathTrig/Sum.php
8+
9+
-
10+
message: '#^Method PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Sum\:\:sumIgnoringStrings\(\) should return float\|int\|string but returns mixed\.$#'
11+
identifier: return.type
12+
count: 1
13+
path: src/PhpSpreadsheet/Calculation/MathTrig/Sum.php
14+
15+
-
16+
message: '#^Binary operation "\*" between mixed and mixed results in an error\.$#'
17+
identifier: binaryOp.invalid
18+
count: 4
19+
path: src/PhpSpreadsheet/Calculation/MathTrig/SumSquares.php
20+
21+
-
22+
message: '#^Binary operation "\-" between mixed and mixed results in an error\.$#'
23+
identifier: binaryOp.invalid
24+
count: 2
25+
path: src/PhpSpreadsheet/Calculation/MathTrig/SumSquares.php
26+
27+
-
28+
message: '#^Method PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Maximum\:\:max\(\) should return float\|int\|string but returns mixed\.$#'
29+
identifier: return.type
30+
count: 1
31+
path: src/PhpSpreadsheet/Calculation/Statistical/Maximum.php
32+
33+
-
34+
message: '#^Method PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Maximum\:\:maxA\(\) should return float\|int\|string but returns mixed\.$#'
35+
identifier: return.type
36+
count: 1
37+
path: src/PhpSpreadsheet/Calculation/Statistical/Maximum.php
38+
39+
-
40+
message: '#^Method PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Minimum\:\:min\(\) should return float\|int\|string but returns mixed\.$#'
41+
identifier: return.type
42+
count: 1
43+
path: src/PhpSpreadsheet/Calculation/Statistical/Minimum.php
44+
45+
-
46+
message: '#^Method PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Minimum\:\:minA\(\) should return float\|int\|string but returns mixed\.$#'
47+
identifier: return.type
48+
count: 1
49+
path: src/PhpSpreadsheet/Calculation/Statistical/Minimum.php
50+
51+
-
52+
message: '#^Parameter \#1 \$str of function preg_quote expects string, mixed given\.$#'
53+
identifier: argument.type
54+
count: 1
55+
path: src/PhpSpreadsheet/Calculation/TextData/Extract.php
56+
57+
-
58+
message: '#^Parameter \#1 \$str of function preg_quote expects string, mixed given\.$#'
59+
identifier: argument.type
60+
count: 1
61+
path: src/PhpSpreadsheet/Calculation/TextData/Text.php

0 commit comments

Comments
 (0)