Skip to content

Commit

Permalink
Add missing object type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 24, 2019
1 parent 004fe43 commit e7090eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Injector.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function instantiate(string $class, array $parameters = []) : object
*
* @return void
*/
public function inject($object) : void
public function inject(object $object) : void
{
$reflection = new \ReflectionObject($object);

Expand All @@ -112,7 +112,7 @@ public function inject($object) : void
*
* @return void
*/
private function injectMethods(\ReflectionClass $class, $object) : void
private function injectMethods(\ReflectionClass $class, object $object) : void
{
foreach ($this->reflectionTools->getClassMethods($class) as $method) {
if ($this->policy->isMethodInjected($method)) {
Expand All @@ -129,7 +129,7 @@ private function injectMethods(\ReflectionClass $class, $object) : void
*
* @return void
*/
private function injectProperties(\ReflectionClass $class, $object) : void
private function injectProperties(\ReflectionClass $class, object $object) : void
{
foreach ($this->reflectionTools->getClassProperties($class) as $property) {
if ($this->policy->isPropertyInjected($property)) {
Expand Down

0 comments on commit e7090eb

Please sign in to comment.