Commit f314a72d authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

view helper render : return string obligatoire

*sort doit retourner un int et non un bool
parent cb3947d5
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/UnicaenApp/Form/View/Helper/Form.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ class Form extends ZVHForm {
     * @param  FormInterface $form
     * @return string
     */
    public function render(FormInterface $form)
    public function render(FormInterface $form): string
    {
        if (method_exists($form, 'prepare')) {
            $form->prepare();
+1 −1
Changes for src/UnicaenApp/Form/View/Helper/FormAdvancedMultiCheckbox.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ class FormAdvancedMultiCheckbox extends FormMultiCheckbox
     * @throws Exception\DomainException
     * @return string
     */
    public function render(ElementInterface $element)
    public function render(ElementInterface $element): string
    {
        $template = '
        <div class="form-advanced-multi-checkbox input-sm form-control" style="height:auto">
+1 −1
Changes for src/UnicaenApp/Form/View/Helper/FormControlGroup.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ class FormControlGroup extends AbstractHelper
     *
     * @return string
     */
    public function render(ElementInterface $element, $pluginClass = 'formElement')
    public function render(ElementInterface $element, $pluginClass = 'formElement'): string
    {
        $this->normalizeElement($element);
        $this->customFromOptions($element);
+1 −1
Changes for src/UnicaenApp/Form/View/Helper/FormDate.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class FormDate extends \Laminas\Form\View\Helper\AbstractHelper
     * @param  Date $element
     * @return string
     */
    public function render(Date $element)
    public function render(Date $element): string
    {
        $this->element = $element;
        
+1 −1
Changes for src/UnicaenApp/Form/View/Helper/FormDateInfSup.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ class FormDateInfSup extends \Laminas\Form\View\Helper\AbstractHelper
     * @param  DateInfSup $element
     * @return string
     */
    public function render(DateInfSup $element)
    public function render(DateInfSup $element): string
    {
        $this->element = $element;
        
Loading