Skip to content

Support for numeric properties

Compare
Choose a tag to compare
@wol-soft wol-soft released this 17 Mar 16:23
· 90 commits to master since this release
5ec7390

Fixes object properties with a numeric name or a name with a leading number:

{
  "type": "object",
  "properties": {
    "1000": {
      "type": "integer"
    },
    "1000string": {
      "type": "string"
    }
  }
}

will result in the following interface (variables are prefixed as PHP doesn't allow variable names with a leading number):

public function get1000(): int;
public function set1000(int $numeric_property_1000): self;
public function get1000string(): string;
public function set1000string(string $numeric_property_1000string): self;