We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b26e31 commit 185276fCopy full SHA for 185276f
src/JsonSchema/Entity/JsonPointer.php
@@ -122,7 +122,7 @@ public function getPropertyPaths()
122
public function withPropertyPaths(array $propertyPaths)
123
{
124
$new = clone $this;
125
- $new->propertyPaths = $propertyPaths;
+ $new->propertyPaths = array_map(function ($p): string { return (string) $p; }, $propertyPaths);
126
127
return $new;
128
}
tests/Constraints/FormatTest.php
@@ -186,7 +186,7 @@ public function getInvalidFormats(): array
186
['1999-01-11T00:00:00+1:00', 'date-time'],
187
['1999.000Z-01-11T00:00:00+1:00', 'date-time'],
188
189
- [PHP_INT_MAX, 'utc-millisec'],
+ [(string) PHP_INT_MAX, 'utc-millisec'],
190
191
['grey', 'color'],
192
['#HHH', 'color'],
0 commit comments