Skip to content

Commit 12cdce7

Browse files
authored
Merge pull request #9 from W0rma/php84-fix-implicitly-nullable-parameters
PHP 8.4: fix usage of deprecated implicitly nullable parameters
2 parents 8db35cf + e1b5db5 commit 12cdce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nmap/Service.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Service
1919

2020
private ?string $version;
2121

22-
public function __construct(string $name = null, string $product = null, string $version = null)
22+
public function __construct(?string $name = null, ?string $product = null, ?string $version = null)
2323
{
2424
$this->name = $name;
2525
$this->product = $product;

0 commit comments

Comments
 (0)