Skip to content

Commit

Permalink
Fix phpdoc and param name in deprecated Factory::rangeFromString() (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati authored Aug 11, 2022
1 parent da0221e commit 6ff7231
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ public static function addressFromBytes(array $bytes)
* For upgrading:
* - if $supportNonDecimalIPv4 is true, use the ParseStringFlag::IPV4_MAYBE_NON_DECIMAL flag
*
* @param string|mixed $address
* @param string|mixed $range
* @param bool $supportNonDecimalIPv4
*
* @return \IPLib\Address\AddressInterface|null
* @return \IPLib\Range\RangeInterface|null
*
* @see \IPLib\Factory::parseRangeString()
* @since 1.10.0 added the $supportNonDecimalIPv4 argument
*/
public static function rangeFromString($address, $supportNonDecimalIPv4 = false)
public static function rangeFromString($range, $supportNonDecimalIPv4 = false)
{
return static::parseRangeString($address, $supportNonDecimalIPv4 ? ParseStringFlag::IPV4_MAYBE_NON_DECIMAL : 0);
return static::parseRangeString($range, $supportNonDecimalIPv4 ? ParseStringFlag::IPV4_MAYBE_NON_DECIMAL : 0);
}

/**
Expand Down

0 comments on commit 6ff7231

Please sign in to comment.