Skip to content

Commit 3d413ed

Browse files
committed
refactor: add few @throws
1 parent 1d3bd1a commit 3d413ed

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/IP.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __toString()
4949
/**
5050
* @param string $ip
5151
* @return IP
52+
* @throws IpException
5253
*/
5354
public static function parse($ip)
5455
{

src/Network.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22
namespace IPTools;
33

4+
use IPTools\Exception\IpException;
45
use IPTools\Exception\NetworkException;
56
use ReturnTypeWillChange;
67

@@ -47,6 +48,7 @@ public function __toString()
4748
/**
4849
* @param string $data
4950
* @return Network
51+
* @throws IpException
5052
*/
5153
public static function parse(string $data)
5254
{

0 commit comments

Comments
 (0)