Skip to content

Commit b2dd016

Browse files
committed
fix: correct regression from adding declare strict_types
1 parent 61c2dd8 commit b2dd016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/JsonSchema/Entity/JsonPointer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function getPropertyPaths()
122122
public function withPropertyPaths(array $propertyPaths)
123123
{
124124
$new = clone $this;
125-
$new->propertyPaths = $propertyPaths;
125+
$new->propertyPaths = array_map(function ($p): string { return (string) $p; }, $propertyPaths);
126126

127127
return $new;
128128
}

tests/Constraints/FormatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function getInvalidFormats(): array
186186
['1999-01-11T00:00:00+1:00', 'date-time'],
187187
['1999.000Z-01-11T00:00:00+1:00', 'date-time'],
188188

189-
[PHP_INT_MAX, 'utc-millisec'],
189+
[(string) PHP_INT_MAX, 'utc-millisec'],
190190

191191
['grey', 'color'],
192192
['#HHH', 'color'],

0 commit comments

Comments
 (0)