Permalink
Browse files

Making the constructor parameter $row optional (#1330)

  • Loading branch information...
pkamps authored and andrerom committed Nov 14, 2017
1 parent 9ff4266 commit 4b3adc9ecd61ce21d1a580ea1a57233c08c15c40
Showing with 3 additions and 3 deletions.
  1. +3 −3 kernel/classes/ezpersistentobject.php
@@ -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 ) )
@@ -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 );
}

0 comments on commit 4b3adc9

Please sign in to comment.