File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ Unreleased]
4+
5+ ### Fixed
6+
7+ - PHP ` 8.4 ` deprecations
8+
39## 5.2.0 - 2024-07-14
410
511### Changed
Original file line number Diff line number Diff line change 55
66final class Factory
77{
8- public static function build (Config $ config = null ): OperatingSystem
8+ public static function build (? Config $ config = null ): OperatingSystem
99 {
1010 switch (\PHP_OS ) {
1111 case 'Darwin ' :
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ private function __construct(Config $config)
3838 $ this ->config = $ config ;
3939 }
4040
41- public static function of (Config $ config = null ): self
41+ public static function of (? Config $ config = null ): self
4242 {
4343 return new self ($ config ?? Config::of ());
4444 }
Original file line number Diff line number Diff line change @@ -32,5 +32,5 @@ public function takeOver(Unix $address): Maybe;
3232 * @return Maybe<Client>
3333 */
3434 public function connectTo (Unix $ address ): Maybe ;
35- public function watch (ElapsedPeriod $ timeout = null ): Watch ;
35+ public function watch (? ElapsedPeriod $ timeout = null ): Watch ;
3636}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function connectTo(Address $address): Maybe
5656 return $ this ->sockets ->connectTo ($ address );
5757 }
5858
59- public function watch (ElapsedPeriod $ timeout = null ): Watch
59+ public function watch (? ElapsedPeriod $ timeout = null ): Watch
6060 {
6161 return Watch \Logger::psr (
6262 $ this ->sockets ->watch ($ timeout ),
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function connectTo(Address $address): Maybe
5454 );
5555 }
5656
57- public function watch (ElapsedPeriod $ timeout = null ): Watch
57+ public function watch (? ElapsedPeriod $ timeout = null ): Watch
5858 {
5959 if (\is_null ($ timeout )) {
6060 return $ this
You can’t perform that action at this time.
0 commit comments