From 268fc1a4c4d5ec150e126f8796580bd67d12edc8 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Mon, 28 Nov 2016 01:58:10 +0900 Subject: [PATCH] Fix unit tests for PHP < 7.0 --- src/PhpSpreadsheet/Writer/Xlsx/Drawing.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php b/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php index aace6708..194242d4 100644 --- a/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php +++ b/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php @@ -2,8 +2,6 @@ namespace PhpOffice\PhpSpreadsheet\Writer\Xlsx; -use PhpOffice\PhpSpreadsheet\Chart; - /** * Copyright (c) 2006 - 2016 PhpSpreadsheet * @@ -85,11 +83,11 @@ class Drawing extends WriterPart * Write drawings to XML format * * @param \PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter XML Writer - * @param Chart $pChart + * @param \PhpOffice\PhpSpreadsheet\Chart $pChart * @param int $pRelationId * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception */ - public function writeChart(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter = null, Chart $pChart = null, $pRelationId = -1) + public function writeChart(\PhpOffice\PhpSpreadsheet\Shared\XMLWriter $objWriter = null, \PhpOffice\PhpSpreadsheet\Chart $pChart = null, $pRelationId = -1) { $tl = $pChart->getTopLeftPosition(); $tl['colRow'] = \PhpOffice\PhpSpreadsheet\Cell::coordinateFromString($tl['cell']);