Browse Source

Return $this instead of void.

ADmad 8 years ago
parent
commit
aded1d39c0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/View/Form/ContextFactory.php

+ 3 - 1
src/View/Form/ContextFactory.php

@@ -107,12 +107,14 @@ class ContextFactory
      *   can be used to overwrite existing providers.
      * @param callable $check A callable that returns an object
      *   when the form context is the correct type.
-     * @return void
+     * @return $this
      */
     public function addProvider($type, callable $check)
     {
         $this->providers = [$type => ['type' => $type, 'callable' => $check]]
             + $this->providers;
+
+        return $this;
     }
 
     /**