@@ -73,7 +73,7 @@ public function testExceptionIsThrownOnInstantiationWithInvalidAddresses($value)
7373 $ this ->expectException (\Darsyn \IP \Exception \InvalidIpAddressException::class);
7474 $ this ->expectExceptionMessage ('The IP address supplied is not valid. ' );
7575 try {
76- /** @phpstan-ignore-next-line (@phpstan-ignore argument.type) */
76+ // @phpstan-ignore argument.type
7777 IP ::factory ($ value );
7878 } catch (InvalidIpAddressException $ e ) {
7979 $ this ->assertSame ($ value , $ e ->getSuppliedIp ());
@@ -197,7 +197,7 @@ public function testCidrMasks($cidr, $expectedMaskHex)
197197 $ reflect = new \ReflectionClass ($ ip );
198198 $ method = $ reflect ->getMethod ('generateBinaryMask ' );
199199 $ method ->setAccessible (true );
200- /** @phpstan-ignore-next-line (@phpstan-ignore argument.type) */
200+ // @phpstan-ignore argument.type
201201 $ actualMask = unpack ('H*hex ' , $ method ->invoke ($ ip , $ cidr , 4 ));
202202 $ this ->assertSame ($ expectedMaskHex , is_array ($ actualMask ) ? $ actualMask ['hex ' ] : null );
203203 }
@@ -220,7 +220,7 @@ public function testExceptionIsThrownFromInvalidCidrValues($cidr)
220220 $ method ->setAccessible (true );
221221 try {
222222 $ method ->invoke ($ ip , $ cidr , 4 );
223- /** @phpstan-ignore-next-line (@phpstan-ignore catch.neverThrown) */
223+ // @phpstan-ignore catch.neverThrown
224224 } catch (InvalidCidrException $ e ) {
225225 $ this ->assertSame ($ cidr , $ e ->getSuppliedCidr ());
226226 throw $ e ;
@@ -288,7 +288,7 @@ public function testInRangeThrowsExceptionOnInvalidCidr($cidr)
288288 $ first = IP ::factory ('12.34.56.78 ' );
289289 $ second = IP ::factory ('12.34.56.78 ' );
290290 $ this ->expectException (InvalidCidrException::class);
291- /** @phpstan-ignore-next-line (@phpstan-ignore argument.type) */
291+ // @phpstan-ignore argument.type
292292 $ first ->inRange ($ second , $ cidr );
293293 }
294294
0 commit comments