Pārlūkot izejas kodu

[Form] Fix the Form fluid interface

Victor Berchet 14 gadi atpakaļ
vecāks
revīzija
f68d16fdff
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/Symfony/Component/Form/Form.php

+ 1 - 1
src/Symfony/Component/Form/Form.php

@@ -459,7 +459,7 @@ class Form implements \IteratorAggregate, FormInterface
     public function bind($clientData)
     {
         if ($this->readOnly) {
-            return;
+            return $this;
         }
 
         if (is_scalar($clientData) || null === $clientData) {