Skip to content
Permalink
Browse files

Return $this instead of void.

  • Loading branch information...
ADmad committed Aug 10, 2017
1 parent 85ef20b commit aded1d39c0d2d1ea8e22ce8b236169d41db488ca
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/View/Form/ContextFactory.php
@@ -107,12 +107,14 @@ public static function createWithDefaults(array $providers = [])
* 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;
}
/**

0 comments on commit aded1d3

Please sign in to comment.
You can’t perform that action at this time.