bump libraries, document change

This commit is contained in:
El RIDO
2024-10-31 08:05:49 +01:00
parent 365782ebeb
commit 9eadf09ac3
5 changed files with 74 additions and 73 deletions

View File

@@ -3,7 +3,7 @@
'name' => 'privatebin/privatebin',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'c1b3bffe8c5214f69f663b6fb59736a6f5fafa86',
'reference' => '365782ebeb864a851a9ece915028f6cac97f8fab',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
@@ -20,9 +20,9 @@
'dev_requirement' => false,
),
'mlocati/ip-lib' => array(
'pretty_version' => '1.18.0',
'version' => '1.18.0.0',
'reference' => 'c77bd0b1f3e3956c7e9661e75cb1f54ed67d95d2',
'pretty_version' => '1.18.1',
'version' => '1.18.1.0',
'reference' => '08bb43b4949069c543ebdf099a6b2c322d0172ab',
'type' => 'library',
'install_path' => __DIR__ . '/../mlocati/ip-lib',
'aliases' => array(),
@@ -31,7 +31,7 @@
'privatebin/privatebin' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => 'c1b3bffe8c5214f69f663b6fb59736a6f5fafa86',
'reference' => '365782ebeb864a851a9ece915028f6cac97f8fab',
'type' => 'project',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),

View File

@@ -84,17 +84,17 @@ class Factory
* 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);
}
/**
@@ -215,20 +215,20 @@ class Factory
}
/**
* @param \IPLib\Address\AddressInterface $from
* @param \IPLib\Address\AddressInterface $to
* @param \IPLib\Address\AddressInterface|null $from
* @param \IPLib\Address\AddressInterface|null $to
*
* @return \IPLib\Range\RangeInterface|null
*
* @since 1.2.0
*/
protected static function rangeFromBoundaryAddresses(AddressInterface $from = null, AddressInterface $to = null)
protected static function rangeFromBoundaryAddresses($from = null, $to = null)
{
if ($from === null && $to === null) {
if (!$from instanceof AddressInterface && !$to instanceof AddressInterface) {
$result = null;
} elseif ($to === null) {
} elseif (!$to instanceof AddressInterface) {
$result = Range\Single::fromAddress($from);
} elseif ($from === null) {
} elseif (!$from instanceof AddressInterface) {
$result = Range\Single::fromAddress($to);
} else {
$result = null;