Skip to content

Wrong order of sprintf`s params in Geocoder\Model\AdminLevelCollection::checkLevel #468

Closed
@bubnov-mikhail

Description

@bubnov-mikhail

Now it is:
throw new \OutOfBoundsException(sprintf(
self::MAX_LEVEL_DEPTH,
"Administrative level should be an integer in [1,%d], %d given",
$level
));
//Output: 5

It should be:

throw new \OutOfBoundsException(sprintf(
"Administrative level should be an integer in [1,%d], %d given",
self::MAX_LEVEL_DEPTH,
$level
));
//Output: Administrative level should be an integer in [1,5], 6 given

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions