Issues

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

Issue Type: Bug Created: 2012-03-04T11:01:31.000+0000 Last Updated: 2012-03-10T16:49:14.000+0000 Status: Resolved Fix version(s): Reporter: Vlad Chernikov (sonic) Assignee: Robert Basic (robertbasic) Tags: - Zend\Db

Related issues: Attachments:

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

Posted by Robert Basic (robertbasic) on 2012-03-04T17:21:03.000+0000

Pull request sent https://github.com/zendframework/zf2/pull/883

Posted by Robert Basic (robertbasic) on 2012-03-10T16:49:13.000+0000

Pull request was merged by Matthew Weier O'Phinney

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts