thoroc / php_writeexcel

Johann Hanne's php lib to write excel file
14 stars 15 forks source link

Composer autoload has conflict with require_once direct usage #12

Closed bursonic closed 7 years ago

bursonic commented 7 years ago

Got this error:

PHP Fatal error:  Cannot declare class writeexcel_worksheet, because the name is already in use in {truncated}/vendor/thoroc/php_writeexcel/src/class.writeexcel_worksheet.inc.php on line 3029

Went fine after removing requires in class.writeexcel_workbook.inc.php

PHP info:

PHP 7.0.14-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.14-1~dotdeb+8.1, Copyright (c) 1999-2016, by Zend Technologies