Ensure that signature of bindParent() in style class overrides matches the signature of bindParent() in the supervisor
This commit is contained in:
parent
45f2829a33
commit
a3303cd05e
|
@ -103,7 +103,7 @@ class PHPExcel_Style_Border extends PHPExcel_Style_Supervisor implements PHPExce
|
|||
* @param string $parentPropertyName
|
||||
* @return PHPExcel_Style_Border
|
||||
*/
|
||||
public function bindParent($parent, $parentPropertyName)
|
||||
public function bindParent($parent, $parentPropertyName=NULL)
|
||||
{
|
||||
$this->_parent = $parent;
|
||||
$this->_parentPropertyName = $parentPropertyName;
|
||||
|
|
|
@ -98,7 +98,7 @@ class PHPExcel_Style_Color extends PHPExcel_Style_Supervisor implements PHPExcel
|
|||
* @param string $parentPropertyName
|
||||
* @return PHPExcel_Style_Color
|
||||
*/
|
||||
public function bindParent($parent, $parentPropertyName)
|
||||
public function bindParent($parent, $parentPropertyName=NULL)
|
||||
{
|
||||
$this->_parent = $parent;
|
||||
$this->_parentPropertyName = $parentPropertyName;
|
||||
|
|
|
@ -68,7 +68,7 @@ abstract class PHPExcel_Style_Supervisor
|
|||
* @param PHPExcel $parent
|
||||
* @return PHPExcel_Style_Supervisor
|
||||
*/
|
||||
public function bindParent($parent)
|
||||
public function bindParent($parent, $parentPropertyName=NULL)
|
||||
{
|
||||
$this->_parent = $parent;
|
||||
return $this;
|
||||
|
|
Loading…
Reference in New Issue