Skip to content

Commit

Permalink
Merge pull request #147 from Brain-WP/feature/php-8.4-fixes
Browse files Browse the repository at this point in the history
PHP 8.4 | Fix implicitly nullable parameter
  • Loading branch information
gmazzap authored Aug 28, 2024
2 parents 560355d + d711f8c commit f5b3384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Expectation/Expectation.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ class Expectation
/**
* @param \Mockery\ExpectationInterface $expectation
* @param \Brain\Monkey\Expectation\ExpectationTarget $target
* @param \ArrayAccess $return_expectations
* @param \ArrayAccess|null $return_expectations
*/
public function __construct(
ExpectationInterface $expectation,
ExpectationTarget $target,
\ArrayAccess $return_expectations = null
$return_expectations = null
) {
$this->expectation = $expectation;
$this->target = $target;
$this->return_expectations = $return_expectations ? : new \ArrayObject();
$this->return_expectations = ($return_expectations instanceof \ArrayAccess) ? $return_expectations : new \ArrayObject();
}

/**
Expand Down

0 comments on commit f5b3384

Please sign in to comment.