Skip to content

patterProperties with int key #780

Closed
@sakarikl

Description

@sakarikl

preg_match(): Argument #2 ($subject) must be of type string, int given

string cast seems to be missing from src/JsonSchema/Constraints/ObjectConstraint.php@69

'patternProperties' => [ '^[0-9]+$' => [ 'type' => 'object', 'additionalProperties' => false,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions