Upgrading maatwebsite/excel 3 to 4
Breaking3.1.70 → 4.0.6Breaking1Security1Platform1New10Changed3Fixed21Other32
BreakingUpgrade verdict
1 breaking change and a platform requirement change and a security fix.
In plain terms
- The OnEachRow class now inherits from Import, which may affect code relying on its previous parent class.
- This release requires newer versions of PHP and Laravel than before.
- Prevents HTML injection when rich text is converted to HTML by escaping font names and plain values.
Must act 3 items need code or config changes
PHP requirement changed in 4.0.0: ^7.0||^8.0 → ^8.3.
What you must change
Breaking1
Makes OnEachRow extend Import, changing its inheritance hierarchy.
OnEachRowImportSecurity1
Escapes font names and plain values in RichTextReader::toHtml().
RichTextReader::toHtml()Platform1
Bumps required PHP and Laravel versions.