Skip to content

Commit

Permalink
Fix CS/WS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 2, 2019
1 parent 7b4e9eb commit 4687aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Framework/MockObject/Builder/InvocationMocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private function ensureTypeOfReturnValues(array $values): void
\sprintf(
'Method %s may not return value of type %s, its return declaration is "%s"',
$configuredMethod->getName(),
is_object($value) ? \get_class($value) : \gettype($value),
\is_object($value) ? \get_class($value) : \gettype($value),
$configuredMethod->getReturnTypeDeclaration()
)
);
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/MockObject/ConfigurableMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function mayReturn($value): bool

return $this->returnType->isAssignable(Type::fromValue($value, false));
}

public function getReturnTypeDeclaration(): string
{
return $this->returnType->getReturnTypeDeclaration();
Expand Down

0 comments on commit 4687aa3

Please sign in to comment.