Issues

ZF2-192: AbstractTableGateway::update() must be compatible with that of TableGatewayInterface::update()

Description

AbstractTableGateway class extends TableGatewayInterface, it should extend definitions methods as well

But TableGatewayInterface::update looks like this:

public function update($set, $where = null);

and AbstractTableGateway::update like this:

public function update($set, $where) { $this->initialize(); return parent::update($set, $where); }

php -version

PHP 5.3.9 with Suhosin-Patch (cli) (built: Feb 8 2012 12:25:15) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator #

i got error:

Fatal error: Declaration of Zend\Db\TableGateway\AbstractTableGateway::update() must be compatible with that of Zend\Db\TableGateway\TableGatewayInterface::update() in /usr/local/share/php/Zend/Db/TableGateway/AbstractTableGateway.php on line 35

Comments

Pull request was merged by Matthew Weier O'Phinney