My Mautic version is: v2.15.3
My PHP version is: 7.2.6
My problem is:
I am extending ZipArchive class https://www.php.net/manual/en/class.ziparchive.php in my plugin
class CustomZipArchive extends \ZipArchive
but I am seeing below error
Compile Error: require_once(): Failed opening required ‘PHPEXCEL_ROOTPHPExc
Steps I have tried to fix the problem:
When I add return false on top of file vendor\phpoffice\phpexcel\Classes\PHPExcel\Shared\ZipArchive.php my code starts working. It seems like mauitc is loading class from PHPexcel bundle instead of loading class from PHP.
How can I fix this issue so that it should load class from php not from phpexcel bundle in vendor directory.