File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ public function send(Message $message): void
2626
2727 public function host (): string
2828 {
29- return parse_url ($ this ->connection ->getRemoteAddress (), PHP_URL_HOST );
29+ return parse_url (( string ) $ this ->connection ->getRemoteAddress (), PHP_URL_HOST );
3030 }
3131
3232 public function port (): int
3333 {
34- return parse_url ($ this ->connection ->getRemoteAddress (), PHP_URL_PORT );
34+ return parse_url (( string ) $ this ->connection ->getRemoteAddress (), PHP_URL_PORT );
3535 }
3636
3737 /**
Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ final class NodeTest extends TestCase
1717
1818 public function setUp (): void
1919 {
20+ /** @var P2pServer $p2pServer */
21+ $ p2pServer = $ this ->createMock (P2pServer::class);
2022 $ this ->node = new Node (
2123 new Miner (new Blockchain (Block::genesis ()), new ZeroPrefix ()),
22- $ this -> createMock (P2pServer::class)
24+ $ p2pServer
2325 );
2426 }
2527
You can’t perform that action at this time.
0 commit comments