Skip to content

Commit

Permalink
remove Typehints and add DocBlocks instead
Browse files Browse the repository at this point in the history
Signed-off-by: gennadigennadigennadi <gennadijanzen@icloud.com>
  • Loading branch information
gennadigennadigennadi committed Oct 7, 2020
1 parent 83d77ca commit b3d2e35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Container/AutowireFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ private function getInjector(ContainerInterface $container)
/**
* Check creatability of the requested name
*
* @param string $requestedName
* @return bool
*/
public function canCreate(ContainerInterface $container, string $requestedName)
public function canCreate(ContainerInterface $container, $requestedName)
{
if (! $container->has(InjectorInterface::class)) {
return false;
Expand All @@ -56,9 +57,10 @@ public function canCreate(ContainerInterface $container, string $requestedName)
/**
* Create an instance
*
* @param string $requestedName
* @return object
*/
public function create(ContainerInterface $container, string $requestedName, ?array $options = null)
public function create(ContainerInterface $container, $requestedName, ?array $options = null)
{
return $this->getInjector($container)->create($requestedName, $options ?: []);
}
Expand Down

0 comments on commit b3d2e35

Please sign in to comment.