Skip to content

Commit

Permalink
typehint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moolex committed Jul 26, 2019
1 parent b1c2501 commit a07f175
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Container.php
Expand Up @@ -32,7 +32,7 @@ public function has($id) : bool

/**
* @param string $id
* @return object
* @return object|mixed
*/
public function get($id)
{
Expand All @@ -46,7 +46,7 @@ public function get($id)
/**
* @param string $id
* @param object $object
* @return object
* @return object|mixed
*/
public function set(string $id, $object)
{
Expand All @@ -57,7 +57,7 @@ public function set(string $id, $object)
/**
* @param string $class
* @param mixed ...$args
* @return object
* @return object|mixed
*/
public function object(string $class, ...$args)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Injection/Constructor.php
Expand Up @@ -13,7 +13,7 @@ trait Constructor
/**
* @param string $class
* @param mixed ...$args
* @return object
* @return object|mixed
*/
private function creating(string $class, ...$args)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Injection/Dependency.php
Expand Up @@ -49,7 +49,7 @@ public function __construct(Container $di, string $class, bool $contract = false
}

/**
* @return object|null
* @return object|mixed|null
*/
public function object()
{
Expand Down

0 comments on commit a07f175

Please sign in to comment.