Skip to content

Commit e1b5db5

Browse files
committed
Avoid implicitly nullable parameters
They are deprecated in PHP 8.4
1 parent 8db35cf commit e1b5db5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)