You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org).
32
32
- Image Transparency/Opacity with Html Reader Changes. [Discussion #4117](https://github.com/PHPOffice/PhpSpreadsheet/discussions/4117)[PR #4142](https://github.com/PHPOffice/PhpSpreadsheet/pull/4142)
33
33
- Option to Write Hyperlink Rather Than Label to Csv. [Issue #1412](https://github.com/PHPOffice/PhpSpreadsheet/issues/1412)[PR #4151](https://github.com/PHPOffice/PhpSpreadsheet/pull/4151)
34
34
- Invalid Html Due to Cached Filesize. [Issue #1107](https://github.com/PHPOffice/PhpSpreadsheet/issues/1107)[PR #4184](https://github.com/PHPOffice/PhpSpreadsheet/pull/4184)
35
+
- Add Dynamic valueBinder Property to Spreadsheet and Readers. [Issue #1395](https://github.com/PHPOffice/PhpSpreadsheet/issues/1395)[PR #4185](https://github.com/PHPOffice/PhpSpreadsheet/pull/4185)
You can override the current binder when setting individual cell values by specifying a different Binder to use in the Cell's `setValue()` or the Worksheet's `setCellValue()` methods.
562
566
```php
563
567
$spreadsheet = new Spreadsheet();
568
+
// Old method using static property
564
569
Cell::setValueBinder(new AdvancedValueBinder());
570
+
// Preferred method using dynamic property since 3.4.0
Note that you can also use the Binder to determine how PhpSpreadsheet identified datatypes for values when you set a cell value without explicitly setting a datatype.
0 commit comments