Skip to content

Commit

Permalink
Compatability with php 8.4
Browse files Browse the repository at this point in the history
Deprecate implicitly nullable parameter types
https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
  • Loading branch information
srjlewis authored Oct 11, 2024
1 parent 2b325bd commit 184cda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CrawlerDetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class CrawlerDetect
/**
* Class constructor.
*/
public function __construct(array $headers = null, $userAgent = null)
public function __construct(?array $headers = null, $userAgent = null)
{
$this->crawlers = new Crawlers();
$this->exclusions = new Exclusions();
Expand Down

0 comments on commit 184cda7

Please sign in to comment.