Skip to content

Commit

Permalink
Fix deprecation warnings with PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Nov 24, 2024
1 parent 40ecda6 commit 3d44afe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]

name: PHP:${{ matrix.php }}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=7.1.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.5|^6.5|^9.4"
Expand Down
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 3d44afe

Please sign in to comment.