Commit Graph

5947 Commits

Author SHA1 Message Date
zhukoff74 c8fc2863e3 Improve ArrayTest structure and readability 2025-12-02 21:09:08 +03:00
oleibman ac5ce66274 Merge pull request #4727 from oleibman/codeunicode
CODE/UNICODE and CHAR/UNICHAR
2025-12-02 07:03:53 +00:00
oleibman 919c6c1750 Update CHANGELOG.md 2025-12-01 23:00:56 -08:00
oleibman fd923c93c4 Merge pull request #4730 from zhukoff74/fix-test-column-index
Two tests have been rewritten to use modern PHPUnit style.
2025-12-01 22:33:22 +00:00
zhukoff74 461baaff65 Two tests have been rewritten to use modern PHPUnit style. 2025-12-02 00:06:43 +03:00
oleibman edd28628f3 Typos in Test Comments 2025-12-01 11:00:23 -08:00
oleibman 5c504ac4ce MACROMAN Charset is on My System, but not Github's - Try MAC Instead 2025-11-28 18:15:10 -08:00
oleibman b243f2f4e5 CODE/UNICODE and CHAR/UNICHAR
PhpSpreadsheet treats CODE and UNICODE as equivalent, likewise for CHAR and UNICHAR. They are, in fact, different. CODE and CHAR deal only with single-byte character sets (Windows-1252 or MacRoman), while UNICODE and UNICHAR deal with all of Unicode. This PR separates them. The existing unit test for CODE was, in many cases, applicable to UNICODE (for which there was no separate test). The tests are corrected for CODE, new tests are added, and a separate test for UNICODE is added. CHAR was mostly okay, new tests are added, and a separate test for UNICHAR is added.
2025-11-28 13:21:27 -08:00
oleibman cd4e71ed77 Merge pull request #4725 from oleibman/branchnames
Update Branch Names in CONTRIBUTING
2025-11-27 05:55:56 +00:00
oleibman 4f893f931d Update Branch Names in CONTRIBUTING 2025-11-26 21:50:01 -08:00
oleibman 097bea58b4 Merge pull request #4723 from oleibman/xmltodo
Eliminate TODO in Reader/Xml/Style/Border
2025-11-26 19:50:32 +00:00
oleibman b1b819e1f7 Eliminate TODO in Reader/Xml/Style/Border
Also clean up the code a bit as long as I was in there.
2025-11-26 10:49:36 -08:00
oleibman 4d597c1aac Merge pull request #4722 from oleibman/changelog20251124
Prepare Changelog for Next Release
5.3.0
2025-11-24 15:47:10 +00:00
oleibman 71d77fadee Prepare Changelog for Next Release 2025-11-24 07:39:00 -08:00
oleibman 95b83f499b Merge pull request #4717 from oleibman/explicit
Prepare to Deprecate Optionality of Second Arg to Cell::setValueExplicit
2025-11-24 15:17:26 +00:00
oleibman aa719cdb02 Merge branch 'master' into explicit 2025-11-21 16:57:24 -08:00
oleibman 98206d9028 Merge pull request #4719 from oleibman/formalphp85try2
Formal Support for Php8.5
2025-11-22 00:39:47 +00:00
oleibman 66422b11b4 Formal Support for Php8.5
Ran into a surprising hitch when Php8.5 failed unit tests despite nightly succeeding. Duplicated problem locally, and fixed it with a Phpunit upgrade. Hopefully that will work on Github as well.
2025-11-21 16:19:08 -08:00
oleibman 78190ffdb6 Prepare to Deprecate Optionality of Second Arg to Cell::setValueExplicit
In PR #4716, @RobinvanderVliet points out that Cell::setValueExplicit and Worksheet::setCellValueExplicit are strangely inconsistent, where the latter requires you to specify a DataType but the former does not. The fix in that PR is to make the latter offer a default DataType rather than requiring the parameter. While that does eliminate inconsistency, I think it does so in the wrong direction - the solution should be to eliminate the optionality in the former - an implicit value for setValueExplicit just doesn't make sense. We can't do that without a breaking change, which this is not. However, we can update the doc-block and change log to indicate our intention to make that change in the next breaking release.
2025-11-21 00:12:07 -08:00
oleibman 1e40387438 Merge pull request #4715 from RobinvanderVliet/add-bahttext-function
Implement missing `BAHTTEXT` function
2025-11-19 11:36:52 +00:00
Robin van der Vliet 576577040c Support PHP 8.1
Apparently `str_split` behaved differently on PHP 8.1 when fed an empty string.
2025-11-16 18:29:39 +01:00
Robin van der Vliet c2a00c5d7d Fix indentation 2025-11-16 18:10:04 +01:00
Robin van der Vliet 4a4eaa68b7 Document implementation of BAHTTEXT function in changelog 2025-11-16 18:06:56 +01:00
Robin van der Vliet 9aca8f3091 Merge branch 'master' into add-bahttext-function 2025-11-16 18:06:05 +01:00
Robin van der Vliet 122b36b09f Implement missing BAHTTEXT function 2025-11-16 18:02:10 +01:00
oleibman 467eada7ba Merge pull request #4714 from RobinvanderVliet/patch-1
Update changelog
2025-11-14 23:52:28 +00:00
Robin van der Vliet bd1a08a477 Update changelog 2025-11-14 23:47:21 +01:00
oleibman ee2d4e8e39 Merge pull request #4711 from oleibman/printarea
Limited PrintArea Support for Html/Pdf
2025-11-14 06:17:44 +00:00
oleibman 8108c12c35 Update CHANGELOG.md 2025-11-13 22:14:54 -08:00
oleibman dcf475eec1 Merge pull request #4713 from oleibman/calcvalue
Use `calculateFormula` Rather Than `_calculateFormulaValue` in Tests
2025-11-14 05:37:48 +00:00
oleibman 827121e6a1 Merge pull request #4708 from RobinvanderVliet/simplify-code
Apply small code style improvements
2025-11-14 05:30:07 +00:00
oleibman 965e51ccd2 Merge branch 'master' into simplify-code 2025-11-13 21:27:10 -08:00
oleibman f6f3daaac4 Merge pull request #4709 from RobinvanderVliet/add-info-function
Implement missing `INFO` function
2025-11-14 05:10:23 +00:00
oleibman 55098edf99 Minor Touchup 2025-11-13 21:07:19 -08:00
oleibman 70b4ecd4d3 Use calculateFormula Rather Than _calculateFormulaValue in Tests
They aren't quite interchangeable. Both are used in the test suite, with no indication of why one or the other. I think we'd be best off being consistent. Based on the names, I think `_calculateFormulaValue` was intended as a private, or at least internal, method, so favor `calculateFormula`. I do not intend to rename or re-categorize `_calculateFormulaValue`, just remove its usage when it isn't clearly warranted.
2025-11-13 20:48:46 -08:00
Robin van der Vliet 70802fafe6 Add another test 2025-11-13 20:43:41 +01:00
Robin van der Vliet 07d68b3bc8 Add support for remaining types 2025-11-13 19:03:21 +01:00
Robin van der Vliet 536c63e100 Implement ìnfoSupported 2025-11-12 18:15:11 +01:00
oleibman ed00f8e14f Limited PrintArea Support for Html/Pdf
Fix #3941. Html and Pdf Writers will show PrintArea if specified rather than the entire sheet. Html Writer, which needs to handle both screen and print views, will use PrintArea through CSS; PDF, which needs to handle only print view, will use it by not including rows and columns which are not in the PrintArea. The support is limited because:
- PrintArea can consist of several different ranges. The writers will use the PrintArea only if it consists of a single range.
- Html use will be effective only if `useInlineCSS` is set to `false`, which is its default value.
- Other aspects of page setup, e.g. horizontal centered, remain unsupported, with or without PrintArea.

Html Writer will also set a `data-printarea` attribute on the `table` declaration for a worksheet when appropriate. Html Reader will recognize and process that attribute. This usage does not require that the PrintArea consist of a single range.
2025-11-11 22:28:41 -08:00
Robin van der Vliet 92eacbeef6 Update changelog 2025-11-11 23:44:44 +01:00
Robin van der Vliet 99d24e2b6b Remove unused imports 2025-11-11 23:35:01 +01:00
Robin van der Vliet ec9d343e8a Remove test for unimplemented function, because it is implemented now 2025-11-11 23:29:19 +01:00
Robin van der Vliet e929a94ef6 Fix tests 2025-11-11 23:17:46 +01:00
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
Robin van der Vliet ee062e4ce6 Update CHANGELOG.md 2025-11-10 19:32:26 +01:00
Robin van der Vliet 19a92fa024 Use ltrim instead of preg_replace 2025-11-10 19:29:19 +01:00