From a045a446d55838c2621146311dec4c9d8c4854de Mon Sep 17 00:00:00 2001 From: Roman Kravchuk Date: Sun, 25 Dec 2016 10:07:20 +0200 Subject: [PATCH] fix namespace for ReflectionObject class PHP Fatal error: Class 'PhpOffice\PhpSpreadsheet\Writer\ReflectionObject' not found in PhpSpreadsheet/src/PhpSpreadsheet/Writer/Ods.php on line 151 --- src/PhpSpreadsheet/Writer/Ods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Writer/Ods.php b/src/PhpSpreadsheet/Writer/Ods.php index 66860e41..3ae21adb 100644 --- a/src/PhpSpreadsheet/Writer/Ods.php +++ b/src/PhpSpreadsheet/Writer/Ods.php @@ -148,7 +148,7 @@ class Ods extends BaseWriter implements IWriter // Retrieve OVERWRITE and CREATE constants from the instantiated zip class // This method of accessing constant values from a dynamic class should work with all appropriate versions of PHP - $ro = new ReflectionObject($objZip); + $ro = new \ReflectionObject($objZip); $zipOverWrite = $ro->getConstant('OVERWRITE'); $zipCreate = $ro->getConstant('CREATE');