Skip to content

Commit

Permalink
fix invalid param, remove unused parameter
Browse files Browse the repository at this point in the history
Signed-off-by: sasezaki <[email protected]>
  • Loading branch information
sasezaki committed Jun 14, 2020
1 parent 12d8f9f commit 6eaf13d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
26 changes: 0 additions & 26 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,28 +1,2 @@
parameters:
ignoreErrors:
-
message: "#^PHPDoc tag @param has invalid value \\(\\$name\\)\\: Unexpected token \"\\$name\", expected type at offset 133$#"
count: 1
path: src/AbstractFactoryInterface.php

-
message: "#^PHPDoc tag @param has invalid value \\(\\$requestedName\\)\\: Unexpected token \"\\$requestedName\", expected type at offset 153$#"
count: 1
path: src/AbstractFactoryInterface.php

-
message: "#^PHPDoc tag @param has invalid value \\(\\$name\\)\\: Unexpected token \"\\$name\", expected type at offset 111$#"
count: 1
path: src/AbstractFactoryInterface.php

-
message: "#^PHPDoc tag @param has invalid value \\(\\$requestedName\\)\\: Unexpected token \"\\$requestedName\", expected type at offset 131$#"
count: 1
path: src/AbstractFactoryInterface.php

-
message: "#^Closure invoked with 4 parameters, 0 required\\.$#"
count: 1
path: src/ServiceManager.php


8 changes: 4 additions & 4 deletions src/AbstractFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ interface AbstractFactoryInterface extends Factory\AbstractFactoryInterface
* Determine if we can create a service with name
*
* @param ServiceLocatorInterface $serviceLocator
* @param $name
* @param $requestedName
* @param string $name
* @param string $requestedName
* @return bool
*/
public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName);
Expand All @@ -51,8 +51,8 @@ public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator
* Create service with name
*
* @param ServiceLocatorInterface $serviceLocator
* @param $name
* @param $requestedName
* @param string $name
* @param string $requestedName
* @return mixed
*/
public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName);
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ private function createDelegatorFromName($name, array $options = null)
};
}

return $creationCallback($this->creationContext, $name, $creationCallback, $options);
return $creationCallback();
}

/**
Expand Down

0 comments on commit 6eaf13d

Please sign in to comment.