Skip to content

IPBlock::create() does not work with humanReadable(false) IP strings #70

@bkuebler

Description

@bkuebler

For me it's unsure if this is a wanted behaviour but, if i try to create an IPBlock from a non human readable ip prefix it will fail.

Code to reproduce

$block = IPBlock::create('192.168.1.0/24');
$nonHumanString = $block->getFirstIp()->humanReadable(false) . '/' . $block->getPrefixLength();
$failedBlock = IPBlock::create($nonHumanString);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions