Skip to content
This repository was archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
fix: removes mixed return types
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jun 10, 2021
1 parent 312267c commit 3ed61b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/HigherOrderExpectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ public function __construct(Expectation $original, string $name, ?array $paramet

/**
* Retrieves the property value from the original expectation.
*
* @return mixed
*/
private function getPropertyValue(): mixed
private function getPropertyValue()
{
if (is_array($this->original->value)) {
return $this->original->value[$this->name];
Expand All @@ -68,8 +70,10 @@ private function getPropertyValue(): mixed
* Retrieves the value of the method from the original expectation.
*
* @param array<int|string, mixed> $arguments
*
* @return mixed
*/
private function getMethodValue(array $arguments): mixed
private function getMethodValue(array $arguments)
{
// @phpstan-ignore-next-line
return $this->original->value->{$this->name}(...$arguments);
Expand Down

0 comments on commit 3ed61b8

Please sign in to comment.