Commit Graph

4891 Commits

Author SHA1 Message Date
oleibman 44014f84ac Merge pull request #4152 from oleibman/issue3185
Xls Writer Conditional Rules Applied to Whole Rows or Columns
2024-10-06 05:21:39 +00:00
oleibman 9c8a743241 Merge pull request #4163 from homersimpsons/chore/deprecate-skip-empty-cells
🗑️ Deprecate `IReader::SKIP_EMPTY_CELLS`
2024-10-06 05:10:02 +00:00
oleibman 1befd3d8af Update IReader.php 2024-10-05 22:07:53 -07:00
oleibman 457b61cf8d Merge pull request #3347 from ConnectGrid/optimize-worksheet-from-array
Check $strictNullComparison outside of loops
2024-10-06 05:01:55 +00:00
oleibman ce16d0d42c Merge pull request #4181 from oleibman/updchglog2
Prepare Changelog For Next Release
2024-10-02 02:42:25 +00:00
oleibman a195f9f7d0 Prepare Changelog For Next Release
Fix #4176.
2024-10-01 19:38:50 -07:00
oleibman 9453140800 Merge pull request #4177 from PHPOffice/dependabot/composer/squizlabs/php_codesniffer-3.10.3
Bump squizlabs/php_codesniffer from 3.10.2 to 3.10.3
2024-10-01 13:31:47 +00:00
dependabot[bot] a729531c23 Bump squizlabs/php_codesniffer from 3.10.2 to 3.10.3
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.10.2 to 3.10.3.
- [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.10.2...3.10.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-01 11:01:53 +00:00
oleibman 87ddd21eb0 Merge pull request #4174 from oleibman/updchglog
Update Changelog
3.3.0
2024-09-29 07:04:07 +00:00
oleibman 68cf897c4d Update Changelog 2024-09-29 00:00:15 -07:00
oleibman 498afe2b86 Merge pull request #4170 from oleibman/urlreinstate
Restore 2 Disabled Tests
2024-09-25 00:59:52 +00:00
oleibman 512c21e808 Add Disconnects 2024-09-24 17:27:33 -07:00
oleibman f7fcb4bb1a Correct Spacing 2024-09-24 17:20:43 -07:00
oleibman 1d73598d67 Restore 2 Disabled Tests
For some https requests for file_get_contents, "context" needs to be added to function call. It is not clear why this has changed recently.
2024-09-24 17:10:37 -07:00
oleibman 9d7aaffe8a Merge pull request #4169 from oleibman/urltests
Disable 2 Tests
2024-09-24 05:06:31 +00:00
oleibman 7366a16cd7 Disable 2 Tests
Test for url image used file_get_contents on file which we have read successfully for years. Today it started returning error 403. Disable tests while I study whether there is a suitable replacement.
2024-09-23 22:01:40 -07:00
oleibman 4b8a929fc1 Merge commit from fork
* Validate Mime Type for Images

* Extend Change to Xlsx Reader

* Attach Drawing to Sheet Only If Valid

* Suppress Some Theoretical Warning Messages

* Minor Tweak
2024-09-23 13:28:31 -07:00
oleibman c91c8c9a62 Merge pull request #4164 from oleibman/amordegrc
Tweak for AMORDEGRC
2024-09-15 12:30:27 +00:00
oleibman 2d493d731b Merge commit from fork 2024-09-14 05:20:37 -07:00
oleibman 90162a143e Merge branch 'master' into amordegrc 2024-09-13 19:04:26 -07:00
oleibman 63ccb02ab9 Merge commit from fork
* Check for Whitespace Around Xml Encoding

* More Tests
2024-09-13 18:17:30 -07:00
Guillaume dd56df2b23 🗑️ Deprecate IReader::SKIP_EMPTY_CELLS
This is an alias to `IGNORE_EMPTY_CELLS` there is no point to have both.
2024-09-10 23:30:13 +02:00
oleibman 381584309e Merge pull request #4165 from oleibman/dompdf84
Dompdf and Php8.4
2024-09-08 02:55:35 +00:00
oleibman 995d9c794e Dompdf and Php8.4
Lots of deprecation messages. They are a major distraction at this stage. Suppress them until Dompdf is fixed.
2024-09-07 18:01:26 -07:00
oleibman a0f811fd38 Merge branch 'master' into amordegrc 2024-09-07 08:35:31 -07:00
oleibman 6c9b2a8209 Merge pull request #4162 from oleibman/csv84
Php 8.4 Will Deprecate fgetcsv Parameter
2024-09-07 15:25:02 +00:00
oleibman 2a8fb60fbb Some Long-Term Prep
Enable us to determine if user has explicitly changed escape character vs. using default.
2024-09-07 07:35:04 -07:00
oleibman a25775ace0 Tweak for AMORDEGRC
Changes to Php8.4 floating point calculations caused failures in unit tests for ROUNDDOWN, ROUNDUP, and AMORDEGRC. These were addressed in a kludgey manner by PR #3897. Then someone reported a problem (not specifically related to Php8.4) with TRUNC. That was fixed by PR #4115, in which I applied the method used by TRUNC to ROUNDDOWN and ROUNDUP as well. The method used to fix these was to cast a floating point value to string and then cast it back to float again. It's a bit surprising that this works, but it seems effective for all our test cases, and is less kludgey than what had been done earlier. Missing from that PR was a similar change for AMORDEGRC. This PR applies that change to AMORDEGRC, which again passes the unit test suite for all releases of Php.
2024-09-07 06:53:44 -07:00
oleibman 352eaae3ee Php 8.4 Will Deprecate fgetcsv Parameter
As described in issue #4161, Php seems to be prepared to break the fgetcsv function in release 9, marking the existing usage deprecated in 8.4. This gives us a long-term problem. This PR provides a short-term solution.
2024-09-06 01:11:34 -07:00
oleibman fd9656689e Merge pull request #4150 from marc-mabe/fix-Date-roundMicroseconds
Fix Date::roundMicroseconds() not resetting microsecond part
2024-09-05 16:53:12 +00:00
oleibman 5c931e94cb Merge commit from fork
* Validate POST Input in Sample 45

Errors will result if inputs are not numeric.

* Update 45_Quadratic_equation_solver.php

---------

Co-authored-by: Owen Leibman <owenleibman@fico.com>
2024-09-05 07:42:34 -07:00
oleibman 50ec30b34c Merge pull request #4153 from oleibman/issue4128b
Improve Xlsx Reader Speed
2024-09-05 02:38:18 +00:00
oleibman bba5719da2 Merge branch 'master' into issue4128b 2024-09-04 19:35:20 -07:00
oleibman b3769577b6 Update CHANGELOG.md 2024-09-04 19:33:32 -07:00
oleibman f023e0d2d7 Merge pull request #4155 from PHPOffice/dependabot/composer/friendsofphp/php-cs-fixer-3.64.0
Bump friendsofphp/php-cs-fixer from 3.61.1 to 3.64.0
2024-09-01 13:04:26 +00:00
dependabot[bot] 94a14e6a23 Bump friendsofphp/php-cs-fixer from 3.61.1 to 3.64.0
Bumps [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) from 3.61.1 to 3.64.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.61.1...v3.64.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>
2024-09-01 11:47:33 +00:00
oleibman 16e557350f Small Optimization 2024-08-31 03:12:44 -07:00
oleibman 60ca6c787c Very Minor Tweak 2024-08-30 15:13:04 -07:00
oleibman 8249cbd375 Scrutinizer 2024-08-30 12:45:34 -07:00
oleibman c11524d1a5 Performance Problem With Some Spreadsheets 2024-08-30 12:21:46 -07:00
oleibman 367c22c67e Slight Improvement to PR #4132
PR #4132 was needed for release 2.2.2 because of a problem with Excel 2016 introduced with 2.2.0. This is a minor tweak to that change - a little simpler, and possibly beneficial if the spreadsheet uses split screens.
2024-08-30 00:40:02 -07:00
oleibman 9498c03c8b Xls Writer Conditional Rules Applied to Whole Rows or Columns
Fix #3195. Applying a conditional style to an entire row or column applies the Excel 2007+ limits (16,384 columns and 1,048,576 rows). However, Excel 2003- has different limits (256 columns and 65,536 rows). Trying to use the larger limits in an Xls spreadsheet results in a corrupt file. Xls Writer is changed to adjust ranges appropriately.

The issue also mentions that there might be a problem if a spreadsheet contains CF rules for both whole rows and whole columns. I am unable to corroborate this; the code from the new test can be used to generate an Xls file which is usable, and which has both row and column conditional styles.

However, testing showed that Xls Writer did not handle conditions correctly for floating point, negative integers, or integers > 65535. These should now be handled correctly.
2024-08-29 23:35:09 -07:00
oleibman f9192006cd Merge pull request #4143 from oleibman/deprecated2
Remove Deprecations from Release 2
2024-08-29 15:24:10 +00:00
oleibman debb07a9fb Merge pull request #4144 from oleibman/issue1402
VLOOKUP Handling of Strings and Number
2024-08-28 15:06:11 +00:00
Marc Bennewitz cd8e83735b Fix Date::roundMicroseconds() not resetting microsecond part 2024-08-26 14:32:10 +02:00
oleibman e1dae99a70 Merge pull request #4141 from oleibman/svbignoreerrors2
String Value Binder Allow Setting "Ignore Number Stored As Text"
2024-08-24 23:46:49 +00:00
oleibman 176c2c8a89 Update CHANGELOG.md 2024-08-24 16:43:59 -07:00
oleibman 9c2c976b4e Merge pull request #4139 from oleibman/pr1321
Xlsx Reader Default Cell Type
2024-08-24 23:14:41 +00:00
oleibman 47ee4da91e Merge branch 'master' into pr1321 2024-08-24 16:10:45 -07:00
oleibman aecb0b674b Update CHANGELOG.md 2024-08-23 23:56:20 -07:00