Skip to content

Commit

Permalink
fix invalid param
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 0889e5a commit 12d8f9f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 deletions.
19 changes: 0 additions & 19 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,9 @@ parameters:
count: 1
path: src/AbstractFactoryInterface.php

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

-
message: "#^PHPDoc tag @param has invalid value \\(bool\\)\\: Unexpected token \"\\\\n \", expected variable at offset 89$#"
count: 1
path: src/ServiceManager.php

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

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

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

2 changes: 1 addition & 1 deletion src/InitializerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface InitializerInterface extends Initializer\InitializerInterface
/**
* Initialize
*
* @param $instance
* @param object $instance
* @param ServiceLocatorInterface $serviceLocator
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ServiceManager implements ServiceLocatorInterface
/**
* Whether or not changes may be made to this instance.
*
* @param bool
* @var bool
*/
protected $allowOverride = false;

Expand Down
3 changes: 2 additions & 1 deletion src/Tool/ConfigDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ function (ReflectionParameter $argument) {
}

/**
* @param $className
* @param string $className
* @psalm-param class-string $className
* @throws InvalidArgumentException if class name is not a string or does
* not exist.
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Tool/FactoryCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public function createFactory($className)
}

/**
* @param $className
* @param string $className
* @psalm-param class-string $className
* @return string
*/
private function getClassName($className)
Expand Down

0 comments on commit 12d8f9f

Please sign in to comment.