Skip to content

Commit

Permalink
Update src/SDK/Resource/Detectors/Host.php
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Lightfoot-Wild <[email protected]>
  • Loading branch information
matt-hensley and ChrisLightfootWild authored Mar 28, 2024
1 parent 270020d commit b033796
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/SDK/Resource/Detectors/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ final class Host implements ResourceDetectorInterface
private const PATH_ETC_MACHINEID = 'etc/machine-id';
private const PATH_VAR_LIB_DBUS_MACHINEID = 'var/lib/dbus/machine-id';
private const PATH_ETC_HOSTID = 'etc/hostid';
private readonly string $dir;
private readonly string $os;

public function __construct(string $dir = '/', string $os = PHP_OS_FAMILY)
{
$this->dir = $dir;
$this->os = $os;
public function __construct(
private readonly string $dir = '/',
private readonly string $os = PHP_OS_FAMILY,
) {
}

public function getResource(): ResourceInfo
Expand Down

0 comments on commit b033796

Please sign in to comment.