Skip to content

Commit

Permalink
Making the constructor parameter $row optional (ezsystems#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkamps authored and andrerom committed Nov 14, 2017
1 parent 9ff4266 commit 4b3adc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/classes/ezpersistentobject.php
Expand Up @@ -49,7 +49,7 @@ class eZPersistentObject
*
* @param int|array $row
*/
public function __construct( $row )
public function __construct( $row = null )
{
$this->PersistentDataDirty = false;
if ( is_numeric( $row ) )
Expand All @@ -59,9 +59,9 @@ public function __construct( $row )

/**
* @deprecated Use eZPersistentObject::__construct() instead
* @param array $row
* @param int|array $row
*/
public function eZPersistentObject( $row )
public function eZPersistentObject( $row = null )
{
self::__construct( $row );
}
Expand Down

0 comments on commit 4b3adc9

Please sign in to comment.