Skip to content

Commit

Permalink
Merge pull request #2 from acelaya-forks/php-8.4-deprecations
Browse files Browse the repository at this point in the history
Fix deprecation warning in IpAddress::__construct with PHP 8.4
  • Loading branch information
acelaya authored Nov 24, 2024
2 parents 651996c + 0ffc80c commit 4e02f6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion src/IpAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class IpAddress implements MiddlewareInterface
*/
public function __construct(
$checkProxyHeaders = false,
array $trustedProxies = null,
?array $trustedProxies = null,
$attributeName = null,
array $headersToInspect = []
) {
Expand Down

0 comments on commit 4e02f6d

Please sign in to comment.