Skip to content

Commit

Permalink
remove debug echo
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHuang committed Nov 25, 2016
1 parent a553bb5 commit 7120b2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/Injection.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ public function make(array $arguments = [])
foreach ($injections as $injection) {
$this->arguments[] = $this->container->get($injection);
}

echo 1;
}

$arguments = array_merge($this->arguments, $arguments);
Expand All @@ -164,8 +162,6 @@ public function make(array $arguments = [])
return $obj;
}

call_user_func_array([$obj, $this->method], $arguments);

return $obj;
return call_user_func_array([$obj, $this->method], $arguments);
}
}
2 changes: 2 additions & 0 deletions tests/Services/MethodInjection.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ class MethodInjection
public function now(DateTime $date)
{
$this->date = $date->format(DateTime::W3C);

return $this;
}
}

0 comments on commit 7120b2b

Please sign in to comment.