Ensure that signature of bindParent() in style class overrides matches the signature of bindParent() in the supervisor

This commit is contained in:
Mark Baker 2012-10-26 14:56:58 +01:00
parent 45f2829a33
commit a3303cd05e
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;