File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,20 @@ final class ContainerBuilder
1818 private array $ definitions = [];
1919
2020 /**
21- * @param callable|object|string $value
21+ * @param callable|object|string $definition
2222 *
2323 * @throws \InvalidArgumentException
2424 */
25- public function add (string $ id , $ value ): self
25+ public function add (string $ id , $ definition ): self
2626 {
27- if (!is_string ($ value ) && !is_callable ($ value ) && !is_object ($ value )) {
27+ if (!is_string ($ definition ) && !is_callable ($ definition ) && !is_object ($ definition )) {
2828 throw new \InvalidArgumentException (sprintf (
2929 'First argument to "%s::add()" must be a string, callable or object. ' ,
3030 self ::class,
3131 ));
3232 }
3333
34- $ this ->definitions [$ id ] = $ value ;
34+ $ this ->definitions [$ id ] = $ definition ;
3535
3636 return $ this ;
3737 }
You can’t perform that action at this time.
0 commit comments