#983: AgaviValidationErrror::__construct() does not check type of arguments
------------------------+---------------------------------------------------
 Reporter:  david       |       Owner:  dominik   
     Type:  defect      |      Status:  new       
 Priority:  normal      |   Milestone:  1.0       
Component:  validation  |     Version:  1.0.0beta4
 Severity:  normal      |    Keywords:            
Has_patch:  0           |  
------------------------+---------------------------------------------------
 Right now, it assumes that each {{{$argument}}} is of type
 {{{AgaviValidationArgument}}}, which breaks BC if someone does something
 like
 {{{
 $incident->addError(new AgaviValidationError($this->_("Either the username
 doesn't exist or you've entered an incorrect password."), null,
 array('username', 'password')));
 }}}
 I.e. give an oldschool array of strings (which mean parameters) by hand,
 for whichever reason.

-- 
Ticket URL: <http://trac.agavi.org/ticket/983>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to