diff --git a/CHANGELOG.md b/CHANGELOG.md index c9039e4..a2f142f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Fixed + +- Taking over a socket didn't remove the correct path (missed the `.sock` extension) + ## 4.1.0 - 2026-04-05 ### Added diff --git a/src/Sockets/Unix/Address.php b/src/Sockets/Unix/Address.php index 02a6fdf..73413eb 100644 --- a/src/Sockets/Unix/Address.php +++ b/src/Sockets/Unix/Address.php @@ -26,7 +26,7 @@ public static function of(Path $path): self #[\NoDiscard] public function asPath(): Path { - return $this->path; + return Path::of($this->toString()); } #[\NoDiscard]