Fix unit tests for PHP < 7.0

This commit is contained in:
Adrien Crivelli 2016-11-28 01:58:10 +09:00
parent f754c830dc
commit 268fc1a4c4
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 2 additions and 4 deletions

View File

@ -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']);