Issues

ZF-11480: Add the "throws" declaration in PHP Doc

Description

Some functions don't have the "@throws" declaration then they should have ! This patch fixes this.

Comments

diff '--exclude=.original' '--exclude=~' '--exclude=.rej' --ignore-space-change -ruN library.original//Zend/Db/Adapter/Abstract.php library//Zend/Db/Adapter/Abstract.php --- library.original//Zend/Db/Adapter/Abstract.php 2011-06-14 19:59:45.822547994 +0200 +++ library//Zend/Db/Adapter/Abstract.php 2011-06-14 19:59:58.911653520 +0200 @@ -530,6 +530,7 @@ * * @param mixed $table The table to insert data into. * @param array $bind Column-value pairs. + * @throws Zend_Db_Adapter_Exception * @return int The number of affected rows. */ public function insert($table, array $bind) @@ -582,6 +583,7 @@ * @param mixed $table The table to update. * @param array $bind Column-value pairs. * @param mixed $where UPDATE WHERE clause(s). + * @throws Zend_Db_Adapter_Exception * @return int The number of affected rows. */ public function update($table, array $bind, $where = '') diff '--exclude=.original' '--exclude=~' '--exclude=.rej' --ignore-space-change -ruN library.original//Zend/Db/Table/Abstract.php library//Zend/Db/Table/Abstract.php --- library.original//Zend/Db/Table/Abstract.php 2011-06-14 19:59:45.835880415 +0200 +++ library//Zend/Db/Table/Abstract.php 2011-06-14 19:59:58.911653520 +0200 @@ -973,6 +973,7 @@ * otherwise all information is returned as an array. * * @param string $key The specific info part to return OPTIONAL + * @throws Zend_Db_Table_Exception * @return mixed */ public function info($key = null)

Thank You for report, It is solved at SVN r24147. And merged into 1.11 branch at r24148

For any mali sender:

If You find some troubles by this commit, Plz contact with this comment entry.

Do not send SPAMs to my office address (*.co.jp) . (I work ZF NOT in my office, but only in my home)