Quellcode durchsuchen

[Form] Fix the Form fluid interface

Victor Berchet vor 14 Jahren
Ursprung
Commit
f68d16fdff
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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) {