Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency phpoffice/phpspreadsheet to v4 (stable0.8) #1652

Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 23, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
phpoffice/phpspreadsheet ^1.29.10 -> ^4.0.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

PHPOffice/PhpSpreadsheet (phpoffice/phpspreadsheet)

v4.0.0

Compare Source

BREAKING CHANGES
  • Data Validations will be stored by worksheet, not cell. Index can be one or more cells or cell ranges. Issue #​797 Issue #​4091 Issue #​4206 PR #​4240
  • Conditional Formatting adds Priority property and handles overlapping ranges better. Issue #​4312 Issue #​4318 PR #​4314
  • Csv Reader will no longer auto-detect Mac line endings by default. Prior behavior can be explicitly enabled via setTestAutoDetect(true), and it will not be possible at all with Php9+. Issue #​4092 PR #​4340
  • Html Writer will now use "better boolean" logic. Booleans will now be output by default as TRUE/FALSE rather than 1/null-string. Prior behavior can be explicitly enabled via setBetterBoolean(false). PR #​4340
  • Xlsx Writer will now use false as the default for forceFullCalc. This affects writes with preCalculateFormulas set to false. Prior behavior can be explicitly enabled via setForceFullCalc(null).PR #​4340
  • Deletion of items deprecated in Release 3. See "removed" below.
Added
Removed
  • Worksheet::getStyles - no replacement. PR #​4330
  • The following items were deprecated in release 3 and are now removed.
  • Drawing::setIsUrl - no replacement.
  • Settings::setLibXmlLoaderOptions() and Settings::getLibXmlLoaderOptions() - no replacement.
  • Worksheet::getHashCode - no replacement.
  • IReader::SKIP_EMPTY_CELLS - use its alias IGNORE_EMPTY_CELLS instead.
  • Worksheet::getProtectedCells - use getProtectedCellRanges instead.
  • Writer/Html::isMpdf property - use instanceof Mpdf instead.
Changed
  • Nothing yet.
Moved
  • Nothing yet.
Deprecated
  • Nothing yet.
Fixed
  • Xls writer Parser Mishandling True/False Argument. Issue #​4331 PR #​4333
  • Xls writer Parser Parse By Character Not Byte. PR #​4344
  • Minor changes to dynamic array calculations exposed by using explicit array return types in some tests. PR #​4328

v3.9.1

Compare Source

Fixed
  • Xls writer Parser Mishandling True/False Argument. Backport of PR #​4333
  • Xls writer Parser Parse By Character Not Byte. Backport of PR #​4344

v3.9.0

Compare Source

Added
  • Methods to get style for row or column. PR #​4317
  • Method for duplicating worksheet in spreadsheet. PR #​4315
Fixed

v3.8.0

Compare Source

Added
  • CHOOSECOLS, CHOOSEROWS, DROP, TAKE, and EXPAND. PR #​4286
Fixed

v3.7.0

Compare Source

Deprecated
  • Drawing::setIsUrl is unneeded. The property is set when setPath determines whether path is a url.
Fixed

v3.6.0

Compare Source

Added
  • Nothing yet.
Changed
  • Nothing yet.
Moved
  • Nothing yet.
Deprecated
  • Nothing yet.
Fixed

v3.5.0

Compare Source

Added
  • Nothing yet.
Changed
  • Settings::libXmlLoaderOptions is ignored. PR #​4233
Moved
  • Nothing yet.
Deprecated
  • Settings::setLibXmlLoaderOptions() and Settings::getLibXmlLoaderOptions() are no longer needed - no replacement.
  • Worksheet::getHashCode is no longer needed.
Fixed

v3.4.0

Compare Source

Security Fix
  • Several security patches.
Added
Changed
Deprecated
  • IReader::SKIP_EMPTY_CELLS - use its alias IGNORE_EMPTY_CELLS instead.
  • Worksheet::getProtectedCells was deprecated in release 2, but was not properly documented, and not removed in release 3. Use getProtectedCellRanges instead.
  • Writer/Html::isMpdf property was deprecated in release 2, but was not properly documented, and not removed in release 3. Use instanceof Mpdf instead.
Moved
  • Nothing yet.
Fixed

v3.3.0

Compare Source

Dynamic Arrays
  • Support for Excel dynamic arrays is added. It is an opt-in feature, so our hope is that there will be no BC breaks, but it is a very large change. Full support is added for Xlsx. It is emulated as Ctrl-Shift-Enter arrays for Ods read and write and Excel2003 and Gnumeric read. Html/Pdf and Csv writers will populate cells on output if they are the result of array formulas. No support is added for Xls or Slk.
Added
Changed
  • Xlsx Reader default datatype when none is specified in Xml is changed from string to numeric, which is how Excel treats it. There is expected to be little impact because DefaultValueBinder and AdvancedValueBinder correct mis-identification as string, and StringValueBinder usually expects string. PR #​4139
  • Currency and Accounting Wizards are changed to act like Excel, and a new CurrencyBase Wizard is added for for non-Excel formats. Issue #​4125 Issue #​4124 PR #​4127
  • Images will not be added to spreadsheet if they cannot be validated as images.
Deprecated
  • Nothing yet.
Removed
  • The following items were deprecated in release 2 and are now removed.
  • Writer\Xls\Style\ColorMap (no longer needed).
  • Reader\Xml::trySimpleXMLLoadString (should not have been public, no public replacement).
  • Calculation\Calculation::_translateFormulaToLocale (use method name translateFormulaToLocale without leading underscore).
  • Calculation\Calculation::_translateFormulaToEnglish (use method name translateFormulaToEnglish without leading underscore).
Moved
  • Nothing yet.
Fixed

v2.3.8

Compare Source

Fixed
  • Xls writer Parser Mishandling True/False Argument. Backport of PR #​4333
  • Xls writer Parser Parse By Character Not Byte. Backport of PR #​4344

v2.3.7

Compare Source

Fixed
  • Backported security patch for control characters in protocol.
  • Use Composer\Pcre in Xls/Parser. Partial backport of PR #​4203

v2.3.6

Compare Source

Deprecated
  • Worksheet::getHashCode is no longer needed.
Fixed
  • Backported security patch for Html navigation.
  • Change hash code for worksheet. Backport of PR #​4207
  • Retitling cloned worksheets. Backport of PR #​4302

v2.3.5

Compare Source

Deprecated
  • Drawing::setIsUrl is unneeded. The property is set when setPath determines whether path is a url.
Fixed
  • More context options may be needed for http(s) image. Backport of PR #​4276
  • Backported security patches for Samples.
  • Backported security patches for Html Writer.

v2.3.4

Compare Source

2024-12-08 - 2.3.4

Fixed
  • Fix Minor Break Handling Drawings. Backport of PR #​4244
  • Swapped Row and Column Indexes in Reference Helper. Backport of PR #​4247
  • Upgrade locked version of Dompdf (Php8.4 compatibility).
  • Remove unnecessary files from Composer package.

v2.3.3

Compare Source

2024-11-22 - 2.3.3

Changed
  • Settings::libXmlLoaderOptions is ignored. Backport of PR #​4233
Deprecated
  • Settings::setLibXmlLoaderOptions() and Settings::getLibXmlLoaderOptions() are no longer needed - no replacement.

v2.3.2

Compare Source

2024-11-10 - 2.3.2

Possible error in release process for 2.3.1.

Fixed
  • 2.3.1 omitted.
  • Backported security patches.
  • Write ignoredErrors Tag Before Drawings. Backport of PR #​4212 intended for 3.4.0.
  • Changes to ROUNDDOWN/ROUNDUP/TRUNC. Backport of PR #​4214 intended for 3.4.0.
Added
  • Method to Test Whether Csv Will Be Affected by Php9. Backport of PR #​4189 intended for 3.4.0.

v2.3.0

Compare Source

2024-09-29 - 2.3.0

Fixed
  • Backported security patches.
  • Improve Xlsx Reader speed (backport of PR #​4153 intended for 3.0.0). Issue #​3917
  • Change to Csv Reader (see below under Deprecated). Backport of PR #​4162 intended for 3.0.0. Issue #​4161
  • Tweak to AMORDEGRC. Backport of PR #​4164 intended for 3.0.0.
Changed
  • Images will not be added to spreadsheet if they cannot be validated as images.
Deprecated
  • Php8.4 will deprecate the escape parameter of fgetcsv. Csv Reader is affected by this; code is changed to be unaffected, but this will mean a breaking change is coming with Php9. Any code which uses the default escape value of backslash will fail in Php9. It is recommended to explicitly set the escape value to null string before then.

v2.2.2

Compare Source

Added
  • Nothing yet.
Changed
  • Nothing yet.
Deprecated
  • Nothing yet.
Moved
  • Nothing yet.
Fixed

v2.2.1

Compare Source

Security Fix
Fixed

v2.2.0

Compare Source

Added
Changed
  • On read, Xlsx Reader had been breaking up union ranges into separate individual ranges. It will now try to preserve range as it was read in. PR #​4042
  • Xlsx/Xls spreadsheet calculation and formatting of dates will use base date of spreadsheet even when spreadsheets with different base dates are simultaneously open. Issue #​1036 Issue #​1635 PR #​4071
Deprecated
  • Writer\Xls\Style\ColorMap is no longer needed.
Moved
  • Nothing
Fixed

v2.1.9

Compare Source

Fixed
  • Xls writer Parser Mishandling True/False Argument. Backport of PR #​4333
  • Xls writer Parser Parse By Character Not Byte. Backport of PR #​4344

v2.1.8

Compare Source

Fixed
  • Backported security patch for control characters in protocol.
  • Use Composer\Pcre in Xls/Parser. Partial backport of PR #​4203

v2.1.7

Compare Source

Deprecated
  • Worksheet::getHashCode is no longer needed..
Fixed
  • Backported security patch for Html navigation.
  • Change hash code for worksheet. Backport of PR #​4207
  • Retitling cloned worksheets. Backport of PR #​4302

v2.1.6

Compare Source

Deprecated
  • Drawing::setIsUrl is unneeded. The property is set when setPath determines whether path is a url.
Fixed
  • More context options may be needed for http(s) image. Backport of PR #​4276
  • Backported security patches for Samples.
  • Backported security patches for Html Writer.

v2.1.5

Compare Source

2024-12-08 - 2.1.5

Fixed
  • Fix Minor Break Handling Drawings. Backport of PR #​4244
  • Swapped Row and Column Indexes in Reference Helper. Backport of PR #​4247
  • Upgrade locked version of Tcpdf (security advisory).
  • Upgrade locked version of Dompdf (Php8.4 compatibility).
  • Remove unnecessary files from Composer package.

v2.1.4

Compare Source

2024-11-22 - 2.1.4

Changed
  • Settings::libXmlLoaderOptions is ignored. Backport of PR #​4233
Deprecated
  • Settings::setLibXmlLoaderOptions() and Settings::getLibXmlLoaderOptions() are no longer needed - no replacement.

v2.1.3

Compare Source

2024-11-10 - 2.1.3

Fixed
  • 2.1.2 omitted.
  • Backported security patches.
  • Write ignoredErrors Tag Before Drawings. Backport of PR #​4212 intended for 3.4.0.
  • Changes to ROUNDDOWN/ROUNDUP/TRUNC. Backport of PR #​4214 intended for 3.4.0.
Added
  • Method to Test Whether Csv Will Be Affected by Php9. Backport of PR #​4189 intended for 3.4.0.

v2.1.1

Compare Source

2024-09-29 2.1.1

Fixed
  • Backported security patches.
  • Change to Csv Reader (see below under Deprecated). Backport of PR #​4162 intended for 3.0.0. Issue #​4161
  • Tweak to AMORDEGRC. Backport of PR #​4164 intended for 3.0.0.
Changed
  • Images will not be added to spreadsheet if they cannot be validated as images.
Deprecated
  • Php8.4 will deprecate the escape parameter of fgetcsv. Csv Reader is affected by this; code is changed to be unaffected, but this will mean a breaking change is coming with Php9. Any code which uses the default escape value of backslash will fail in Php9. It is recommended to explicitly set the escape value to null string before then.

v2.1.0

Compare Source

MINOR BREAKING CHANGE
  • Writing of cell comments to Html will now sanitize all Html tags within the comment, so the tags will be rendered as plaintext and have no other effects when rendered. Styling can be achieved by using the Font property of of the TextRuns which make up the comment, as is already the cases for Xlsx. PR #​3957
Added
Changed
  • Nothing
Deprecated
  • Reader/Xml trySimpleXMLLoadString should not have had public visibility, and will be removed.
Removed
  • Nothing
Fixed

v2.0.0

Compare Source

BREAKING CHANGE
  • Typing was strengthened by leveraging native typing. This should not change any behavior. However, if you implement
    any interfaces or inherit from any classes, you will need to adapt your typing accordingly. If you use static analysis
    tools such as PHPStan or Psalm, new errors might be found. If you find actual bugs because of the new typing, please
    open a PR that fixes it with a detailed explanation of the reason. We'll try to merge and release typing-related
    fixes quickly in the coming days. PR #​3718
  • All deprecated things have been removed, for details, see 816b91d0b4
Added
Changed
  • Drop support for PHP 7.4, according to https://phpspreadsheet.readthedocs.io/en/latest/#php-version-support PR #​3713
  • RLM Added to NumberFormatter Currency. This happens depending on release of ICU which Php is using (it does not yet happen with any official release). PhpSpreadsheet will continue to use the value returned by Php, but a method is added to keep the result unchanged from release to release. Issue #​3571 PR #​3640
  • toFormattedString will now always return a string. This was introduced with 1.28.0, but was not properly documented at the time. This can affect the results of toArray, namedRangeToArray, and rangeToArray. PR #​3304
  • Value of constants FORMAT_CURRENCY_EUR and FORMAT_CURRENCY_USD was changed in 1.28.0, but was not properly documented at the time. Issue #​3577
  • Html Writer will attempt to use Chart coordinates to determine image size. Issue #​3783 PR #​3787
Deprecated
  • Functions _translateFormulaToLocale and _translateFormulaEnglish are replaced by versions without leading underscore. PR #​3828
Removed
  • Nothing
Fixed

Configuration

📅 Schedule: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot added 3. to review Waiting for reviews dependencies Pull requests that update a dependency file labels Feb 23, 2025
@renovate renovate bot requested a review from blizzz February 23, 2025 17:12
Copy link
Contributor Author

renovate bot commented Feb 23, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update phpoffice/phpspreadsheet:4.0.0 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires phpunit/phpunit ^12, found phpunit/phpunit[12.0.0, ..., 12.0.4] but the package is fixed to 9.6.21 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 2
    - Root composer.json requires psalm/phar ^6.8.6, found psalm/phar[6.8.6] but the package is fixed to 5.26.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 3
    - Root composer.json requires phpoffice/phpspreadsheet ^4.0.0 -> satisfiable by phpoffice/phpspreadsheet[4.0.0].
    - phpoffice/phpspreadsheet 4.0.0 requires php ^8.1 -> your php version (8.0; overridden via config.platform, same as actual) does not satisfy that requirement.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

@github-actions github-actions bot enabled auto-merge February 23, 2025 17:12
@github-actions github-actions bot merged commit 0af1511 into stable0.8 Feb 23, 2025
27 of 62 checks passed
@github-actions github-actions bot deleted the renovate/stable0.8-phpoffice-phpspreadsheet-4.x branch February 23, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants