Skip to content

Commit

Permalink
Fix Deprecated: Function ReflectionType::__toString() (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmorel authored May 25, 2021
1 parent 98dba54 commit 24d8f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Json/JsonInspectorResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function resolveArguments(\ReflectionClass $classReflection, array $argum

$parameters = $constructor->getParameters();
foreach ($parameters as $parameter) {
if (null !== $parameter->getType() && ((string)$parameter->getType()) === 'Ubirak\RestApiBehatExtension\Json\JsonInspector') {
if (null !== $parameter->getType() && ($parameter->getType()->getName()) === 'Ubirak\RestApiBehatExtension\Json\JsonInspector') {
$arguments[$parameter->name] = $this->jsonInspector;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Rest/RestApiBrowserResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function resolveArguments(\ReflectionClass $classReflection, array $argum

$parameters = $constructor->getParameters();
foreach ($parameters as $parameter) {
if (null !== $parameter->getType() && ((string)$parameter->getType()) === 'Ubirak\RestApiBehatExtension\Rest\RestApiBrowser') {
if (null !== $parameter->getType() && ($parameter->getType()->getName()) === 'Ubirak\RestApiBehatExtension\Rest\RestApiBrowser') {
$arguments[$parameter->name] = $this->restApiBrowser;
}
}
Expand Down

0 comments on commit 24d8f36

Please sign in to comment.