Commit Graph

5898 Commits

Author SHA1 Message Date
Robin van der Vliet e18bf2a2ef Fix tests 2025-11-10 22:45:43 +01:00
Robin van der Vliet 4fd2f4d551 Fix issues 2025-11-10 22:00:38 +01:00
Robin van der Vliet 92a3bb8a9e Fix issues 2025-11-10 21:54:17 +01:00
Robin van der Vliet e9ec166018 Add tests 2025-11-10 21:50:15 +01:00
Robin van der Vliet bfb694a73e Implement missing INFO function 2025-11-10 21:31:05 +01:00
oleibman fc48bce36d Merge pull request #4707 from RobinvanderVliet/update-translation-file
Add missing Dutch translation to translation file
2025-11-10 02:15:36 +00:00
oleibman c5c9f24592 Merge branch 'master' into update-translation-file 2025-11-09 18:12:37 -08:00
oleibman 4e6908587d Merge pull request #4705 from RobinvanderVliet/fix-typos
Fix lots of typos throughout codebase
2025-11-10 01:35:48 +00:00
Robin van der Vliet 6389ec3ee1 Update changelog 2025-11-09 23:38:43 +01:00
Robin van der Vliet 662070271c Run generate-locales.php 2025-11-09 23:35:50 +01:00
Robin van der Vliet 96d32eaa1a Add missing Dutch translation 2025-11-09 23:35:36 +01:00
Robin van der Vliet d004c2c3b8 Fix word 2025-11-09 23:21:32 +01:00
Robin van der Vliet f10d4fd766 Fix grammar error 2025-11-09 23:19:05 +01:00
Robin van der Vliet 8475cfdf13 Fix single typo 2025-11-09 21:19:41 +01:00
Robin van der Vliet 235b808ad0 Update changelog 2025-11-09 17:15:08 +01:00
Robin van der Vliet 603b92e827 Fix lots of typos throughout codebase 2025-11-09 17:10:55 +01:00
oleibman 58fd5cac62 Merge pull request #4702 from oleibman/issue4695
Protected Ranges and Insert/Delete Columns/Rows
2025-11-07 16:31:27 +00:00
oleibman 2bc326bb16 Merge branch 'master' into issue4695 2025-11-07 08:28:30 -08:00
oleibman 4833efc65f Update CHANGELOG.md 2025-11-07 08:27:28 -08:00
oleibman 4f6c850a23 Merge pull request #4703 from oleibman/issue1764
Documentation for Excel Date/timestamp Format
2025-11-03 04:03:59 +00:00
oleibman dc2d89e233 Documentation for Excel Date/timestamp Format
Fix #1764.
2025-11-02 19:58:25 -08:00
oleibman c944b1a162 Merge pull request #4697 from oleibman/issue4696
Unexpected Exception in Php DateTime
2025-11-02 07:02:47 +00:00
oleibman 938ba72eb1 Coverage Tweak 2025-11-01 23:39:14 -07:00
oleibman 96f783c0ac Update CHANGELOG.md 2025-11-01 22:41:06 -07:00
oleibman f1562c967b Protected Ranges and Insert/Delete Columns/Rows
Fix #4695. PhpSpreadsheet has assumed that each Protected Range on a Worksheet is defined in the Xml using a single range. However, Excel itself will often combine ranges together. So, in the xml for the spreadsheet supplied with the issue, we see:
```xml
<protectedRange name="Champs_non_bloqués_2" sqref="B2:D4 J2:L4 F2:H4"/>
```

When inserting or deleting rows or columns, ReferenceHelper is used to adjust (among other things) Protected Ranges. The existing code (probably) works well enough if there is only one range in `sqref`, but fails to parse correctly and throws an Exception when there is more than one. It is replaced with a fairly straightforward manner of updating when rows/columns are inserted, and a slightly more convoluted manner of updating when rows/columns are deleted.
2025-11-01 21:58:23 -07:00
oleibman a61f9f1b66 Merge pull request #4701 from oleibman/phpstan2131
Upgrade Phpstan
2025-11-01 15:29:21 +00:00
oleibman 93c5f0d93d Coverage Tweak 2025-11-01 07:58:15 -07:00
oleibman e88eaa6d95 Upgrade Phpstan
Too many new errors when Dependabot tried to upgrade.
2025-11-01 07:12:39 -07:00
oleibman 4db18eadd4 Merge pull request #4698 from PHPOffice/dependabot/composer/friendsofphp/php-cs-fixer-3.89.1
Bump friendsofphp/php-cs-fixer from 3.88.2 to 3.89.1
2025-11-01 11:35:56 +00:00
oleibman 22682a1326 Merge pull request #4700 from PHPOffice/dependabot/composer/dompdf/dompdf-3.1.4
Bump dompdf/dompdf from 3.1.2 to 3.1.4
2025-11-01 11:35:36 +00:00
dependabot[bot] 4dfe452214 Bump dompdf/dompdf from 3.1.2 to 3.1.4
Bumps [dompdf/dompdf](https://github.com/dompdf/dompdf) from 3.1.2 to 3.1.4.
- [Release notes](https://github.com/dompdf/dompdf/releases)
- [Commits](https://github.com/dompdf/dompdf/compare/v3.1.2...v3.1.4)

---
updated-dependencies:
- dependency-name: dompdf/dompdf
  dependency-version: 3.1.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 11:01:14 +00:00
dependabot[bot] 03d4751586 Bump friendsofphp/php-cs-fixer from 3.88.2 to 3.89.1
Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.88.2 to 3.89.1.
- [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases)
- [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.88.2...v3.89.1)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-version: 3.89.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 11:01:05 +00:00
oleibman b9857e4804 AutoFilter Exposures 2025-10-31 10:12:17 -07:00
oleibman f713b52b6d Additional Affected Functions 2025-10-31 00:36:24 -07:00
oleibman 57985fde8e Unexpected Exception in Php DateTime
Fix #4696. Fix #917 (which had gone stale but is now reopened). Fix #916. People were receiving unexpected exceptions calling `Date::isDateTime($cell)`. 916 and 917 had been mostly resolved long ago by adding a numeric check on the contents of $cell. However, it turns out that the use of values with very large absolute values can cause Php DateTime to throw an exception, which is the problem with 4696, when it calls `Date::toExcelDateTimeObject` for a cell with a large integer value.

`Date::toExcelDateTimeObject` is coded to return a Php DateTime object. I don't see any reasonable non-breaking fix for that. People can always add try/catch if they are worried about that. However, `Date::isDateTime` can add an additional check and return `false` if this situation occurs. All 3 of the issues resolved by this PR mention isDateTime in their discussion; they are all fixed without additional coding changes by this.

An additional change is needed for `Cell::getFormattedValue` to avoid this problem. This is fixed in `Style::NumberFormatter::DateFormatter::format`.
2025-10-30 18:05:54 -07:00
oleibman 4cb69539aa Merge pull request #4694 from krowinski/patch-1
Fix typo in composer.json for intl extension
2025-10-27 15:01:42 +00:00
Kacper Rowiński 398891f97e Fix typo in composer.json for intl extension 2025-10-27 13:01:26 +01:00
oleibman 3b8994b3aa Merge pull request #4692 from oleibman/prep520
Prepare for Release 5.2.0
5.2.0
2025-10-26 15:54:22 +00:00
oleibman f5257038aa Prepare for Release 5.2.0 2025-10-26 08:38:27 -07:00
oleibman 0cab37fa7c Merge pull request #4689 from oleibman/listdimensions
Xls Reader ListWorksheetInfo and New ListWorksheetDimensions
2025-10-24 01:05:40 +00:00
oleibman 86555ffa4f Update CHANGELOG.md 2025-10-23 18:02:42 -07:00
oleibman 030ece8666 Merge branch 'master' into listdimensions 2025-10-23 17:36:09 -07:00
oleibman 6494ddb9ae Merge pull request #4690 from BackEndTea/fix-phpstan-issues
Fix phpstan issues by making Escher generic
2025-10-24 00:14:50 +00:00
oleibman 02090c1d3f Another Test 2025-10-23 17:07:26 -07:00
gertdepagter 1adad7565c Fix phpstan issues by making Escher generic
This removes the need to check if a method exists
2025-10-23 21:47:13 +02:00
oleibman d5b9ba68e2 New Tests 2025-10-23 12:18:59 -07:00
oleibman ee03c0a467 Add Some Coverage 2025-10-21 09:58:26 -07:00
oleibman c3a78e480d Xls Reader ListWorksheetInfo and New ListWorksheetDimensions
PR #4687 corrected how Xls Writer generated its Dimensions records. We ignore the Dimensions record on read since it does not affect our processing in the slightest. However, the PR raises the possibility that someone might wish to see the data in the Dimensions record. (The PR did an adequate test for retrieving Dimensions data, but it is not generalizable.) To accommodate such a case, we add a new ListWorksheetDimensions function to Xls Reader, similar to ListWorksheetInfo. As luck would have it, the spreadsheet with which I tested the new function produced incorrect results for ListWorksheetInfo, which was ignoring XLS_TYPE_MULRK records. So I added the necessary code to fix ListWorksheetInfo as well.
2025-10-21 07:12:20 -07:00
oleibman 09fab17fb8 Merge pull request #4687 from zlatanovic-nebojsa/fix-dimensions-record
Fix BIFF8 DIMENSIONS record to use 0-based column indices
2025-10-21 13:46:50 +00:00
oleibman 21dc7fb56b Update CHANGELOG.md 2025-10-21 06:40:39 -07:00