Skip to content

Commit

Permalink
API Explicity mark nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 3e4bb89 commit 73cb915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Context/SilverStripeContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ abstract class SilverStripeContext extends MinkContext implements SilverStripeAw
*
* @param array $parameters context parameters (set them up through behat.yml)
*/
public function __construct(array $parameters = null)
public function __construct(?array $parameters = null)
{
if (!preg_match('#[\\\]FeatureContext$#', get_class($this))) {
throw new InvalidArgumentException(
Expand Down
2 changes: 1 addition & 1 deletion src/Utility/TestMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(
$this->testSessionEnvironment = TestSessionEnvironment::singleton();
}

public function send(RawMessage $message, Envelope $envelope = null): void
public function send(RawMessage $message, ?Envelope $envelope = null): void
{
parent::send($message, $envelope);
/** @var Email $email */
Expand Down

0 comments on commit 73cb915

Please sign in to comment.