Commit Graph

5488 Commits

Author SHA1 Message Date
oleibman 5c94de34a9 More Phpstan Level 10 Prep - Readers
Also upgrade Phpstan.
2025-05-03 21:18:55 -07:00
oleibman c88627681c Merge pull request #4452 from oleibman/stan1003write
More Phpstan Level 10 Prep - Writers
2025-04-30 07:47:46 +00:00
oleibman 662033720c Include Some Readers 2025-04-28 15:24:46 -07:00
oleibman ebb04a8811 More Phpstan Level 10 Prep - Writers 2025-04-27 07:15:26 -07:00
oleibman fb2cfed070 Merge pull request #4450 from oleibman/issue1275
Print Area and Row Break
2025-04-23 06:09:17 +00:00
oleibman f474cd6773 Update CHANGELOG.md 2025-04-22 23:06:04 -07:00
oleibman ac9a0fed7e Merge branch 'master' into issue1275 2025-04-22 22:50:27 -07:00
oleibman d8ad4b03d7 Merge pull request #4449 from oleibman/issue4448
XML Reader Recognize Indents
2025-04-23 05:45:32 +00:00
oleibman 11f0b571a4 Merge pull request #4442 from oleibman/issue4438
Micro-optimization for excelToDateTimeObject
2025-04-23 05:16:56 +00:00
oleibman 3c7afe6879 Merge pull request #4447 from oleibman/stan1002
Phpstan 10 and IterableValue Prep Part 2
2025-04-23 05:08:50 +00:00
oleibman 0d236eb274 Print Area and Row Break
Fix #1275, which had been closed as stale, and is now reopened pending the implementation of this PR. If there is a page break inside a defined print area, Excel may not render the print correctly unless the xml `brk` tag contains a `max` attribute. Libre Office renders it correctly. This seems like a bug in Excel (https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/b32ae11b-dee7-4dcb-9b46-a0feb32ce94f states that Office ignores min and max). PR #3345 (issue #3143) already addressed this problem by allowing the user to explicitly specify a `max` property in the PageBreak object. This PR eliminates the need for the user to make use of that kludge, by adding `max` to the xml whenever a page break is specified on a sheet with a defined print area. Xlsx Reader will now ignore the `max` attribute for row breaks, since it is no longer needed; it already ignores it for column breaks. The user may still set the `max` property if desired, just in case the new treatment is not adequate (I have not found a case where that is true). Two existing unit tests are very marginally changed because of this PR.
2025-04-21 23:52:08 -07:00
oleibman de9fdc3855 XML Reader Recognize Indents
Fix #4448
2025-04-20 16:10:50 -07:00
oleibman 1bd8bd90f6 Update Some More Tests 2025-04-20 00:53:29 -07:00
oleibman 455c259e41 Minor Tweak 2025-04-19 10:07:27 -07:00
oleibman 19555d6d96 Phpstan 10 and IterableValue Prep Part 2
There will probably be dozens, if not hundreds, of these before I'm ready to commit.
2025-04-18 23:27:29 -07:00
oleibman e8316367b9 Merge pull request #4439 from oleibman/stan1001
Phpstan Tweaks
2025-04-17 04:43:10 +00:00
oleibman 5f6d7410e5 Merge pull request #4445 from oleibman/changelog20250416
Prepare Changelog for New Release
4.2.0
2025-04-17 02:41:45 +00:00
oleibman ede1f642d0 Prepare Changelog for New Release 2025-04-16 19:37:48 -07:00
oleibman 5c6f2d0e34 Micro-optimization for excelToDateTimeObject
Fix #4438. Do some optimization if Excel value is an integer. This is unlikely to make much of a difference, but the use case seems pretty common (cell represents a date rather than date-time), so we may as well do it. There had been no tests for negative integer values, because Excel does not handle those well, but OpenOffice and Gnumeric handle them just fine, so add some tests for them.
2025-04-13 14:43:16 -07:00
oleibman c2b5cb3a6d ArrayEnabled and Database Functions 2025-04-13 14:32:05 -07:00
oleibman 6cec624f6a Scrutinizer 2025-04-06 20:12:01 -07:00
oleibman 1da177e0d3 Make Files Executable 2025-04-06 18:27:55 -07:00
oleibman f1a61c4c6b Phpstan Tweaks
Phpstan level 10 reports an enormous number of errors. So does the excluded missingType.iterableValue. I do not plan to introduce either any time soon. But I will submit piecemeal changes from time to time. Changes will be mostly limited to phpdoc type declarations.
2025-04-06 18:14:59 -07:00
oleibman 86cca1230a Merge pull request #4436 from oleibman/issue4435
Ods Reader No Datatype for Null Value
2025-04-06 00:32:02 +00:00
oleibman 5ce46da559 Merge branch 'master' into issue4435 2025-04-05 17:29:22 -07:00
oleibman 70a590b117 Update CHANGELOG.md 2025-04-05 17:28:31 -07:00
oleibman 19465642df Merge pull request #4437 from oleibman/stansamp
Phpstan and Samples
2025-04-05 22:04:45 +00:00
oleibman ecbd702628 Phpstan and Samples
Phpstan hasn't identified any errors in Samples in a long time. But, as it turns out, one particular error is suppressed:
```
Variable $helper might not be defined.
```
This error would be generated by almost all samples, and the errors that it suppresses will become problematic if we move to Level 10. We are not yet committed to doing that, but it is pretty easy to write a script to change the samples so that error no longer happens, and there isn't really any reason to delay doing so. The results of that script constitute this PR.
2025-04-05 13:54:20 -07:00
oleibman 5b799dbbed Ods Reader No Datatype for Null Value
Issue #4435 was initially described incorrectly. While investigating the original description, I came upon this problem. Ods Reader is trying to set some cells to null without supplying a valid DataType to setValueExplicit, causing that method to throw an exception. Reader is changed to no longer call that method when value is null and DataType is null-string.
2025-04-03 19:55:33 -07:00
oleibman d51bf5f65a Merge pull request #4429 from oleibman/stan2lv909
Phpstan Level 9: Last
2025-04-04 01:52:29 +00:00
oleibman 7fb9a5a1aa Merge branch 'master' into stan2lv909 2025-04-01 07:04:48 -07:00
oleibman b8bba641bb Merge pull request #4430 from PHPOffice/dependabot/composer/friendsofphp/php-cs-fixer-3.75.0
Bump friendsofphp/php-cs-fixer from 3.70.0 to 3.75.0
2025-04-01 13:50:12 +00:00
oleibman 156890d1ed Merge pull request #4432 from PHPOffice/dependabot/composer/squizlabs/php_codesniffer-3.12.0
Bump squizlabs/php_codesniffer from 3.11.3 to 3.12.0
2025-04-01 13:49:23 +00:00
oleibman a136b081e1 Merge pull request #4434 from PHPOffice/dependabot/composer/tecnickcom/tcpdf-6.9.0
Bump tecnickcom/tcpdf from 6.8.2 to 6.9.0
2025-04-01 13:48:41 +00:00
dependabot[bot] 349e338993 Bump tecnickcom/tcpdf from 6.8.2 to 6.9.0
Bumps [tecnickcom/tcpdf](https://github.com/tecnickcom/TCPDF) from 6.8.2 to 6.9.0.
- [Changelog](https://github.com/tecnickcom/TCPDF/blob/main/CHANGELOG.TXT)
- [Commits](https://github.com/tecnickcom/TCPDF/compare/6.8.2...6.9.0)

---
updated-dependencies:
- dependency-name: tecnickcom/tcpdf
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 11:45:38 +00:00
dependabot[bot] 5b3bd85d29 Bump squizlabs/php_codesniffer from 3.11.3 to 3.12.0
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.11.3 to 3.12.0.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.3...3.12.0)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 11:45:27 +00:00
dependabot[bot] 4175edc5d4 Bump friendsofphp/php-cs-fixer from 3.70.0 to 3.75.0
Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.70.0 to 3.75.0.
- [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.70.0...v3.75.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-01 11:45:19 +00:00
oleibman e32447c4be Phpstan Level 9: Last 2025-03-31 21:53:47 -07:00
oleibman 4323fcff5a Merge pull request #4428 from oleibman/stan2lv908
Phpstan Level 9 - Part 8 of Many - TextData
2025-03-31 13:09:38 +00:00
oleibman 8a61a18769 Merge pull request #4427 from oleibman/stan2lv907
Phpstan Level 9 - Part 7 of Many: Functions, LookupRef
2025-03-31 13:08:52 +00:00
oleibman 078846cc8e Phpstan Level 9 - Part 8 of Many - TextData 2025-03-29 07:22:44 -07:00
oleibman 00ededb379 Phpstan Level 9 - Part 7 of Many: Functions, LookupRef 2025-03-29 06:53:41 -07:00
oleibman 729c4dc9e0 Merge pull request #4421 from oleibman/stan2lv906
Phpstan Level 9 - Part 6 of Many (Shared/OLE)
2025-03-28 05:43:33 +00:00
oleibman 5dee5a7bbb Merge pull request #4420 from oleibman/stan2lv905
Phpstan Level 9 - Part 5 of Many
2025-03-28 05:42:51 +00:00
oleibman 8aee49160f Merge pull request #4423 from oleibman/issue4416
Column Widths Not Preserved When Using Read Filter
2025-03-27 07:04:03 +00:00
oleibman 2213139d96 Merge branch 'master' into issue4416 2025-03-27 00:01:29 -07:00
oleibman 664b9c7c24 Update CHANGELOG.md 2025-03-27 00:00:28 -07:00
oleibman f52ae206e0 Merge pull request #4412 from mikkokoo/master
Conditional and table formatting support for html
2025-03-27 06:50:14 +00:00
oleibman 584c8662d7 Final Touch-up 2025-03-26 23:47:03 -07:00
Mikko a67e778b50 Conditional and table formatting support for html writer 2025-03-26 15:30:33 +02:00