ZF-6045: Make the first argument of Zend_Captcha_Adapter::render() optional

Description

I like to integrate Zend_Captcha in an old project - but i need to create an instance of Zend_View only to fit the first argument of Zend_Captcha_Adapter::render().

<?php $captcha = new Zend_Captcha_Dump() $id = $captcha->generate(); echo $captcha->render(new Zend_View()); ?>

Would it not be better, to make the first argument optional? Currently no adapter use the first argument! Future one might - but they can check this and throw an exception if its not present.

Comments

Patch added to provide a simple solution

fixed, thanks