vdomah / octoexcel

OctoberCMS wrapper for Maatwebsite/Laravel-Excel
MIT License
14 stars 10 forks source link

Compatibility with PhpOffice\PhpSpreadsheet\Reader\IReader #18

Closed artmin closed 2 years ago

artmin commented 2 years ago

Problem descriptions

When making a standard export, exceptions are thrown because of incompatibility of Vdomah\Excel\Classes\XlsxStyled class with PhpOffice\PhpSpreadsheet\Reader\IReader class (as present in Maatwebsite\Excel in version 3.1)

Solution

Adjust method declaration according to inherited class: Line 76: public function canRead(string $pFilename) : bool Line 325: public function load(string $pFilename, int $flags = 0)

vdomah commented 2 years ago

Thanks for reporting! Fixed in latest version