Skip to content

Commit

Permalink
fix: correct regression from adding declare strict_types
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs committed Oct 9, 2024
1 parent 61c2dd8 commit b2dd016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JsonSchema/Entity/JsonPointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function getPropertyPaths()
public function withPropertyPaths(array $propertyPaths)
{
$new = clone $this;
$new->propertyPaths = $propertyPaths;
$new->propertyPaths = array_map(function ($p): string { return (string) $p; }, $propertyPaths);

return $new;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Constraints/FormatTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function getInvalidFormats(): array
['1999-01-11T00:00:00+1:00', 'date-time'],
['1999.000Z-01-11T00:00:00+1:00', 'date-time'],

[PHP_INT_MAX, 'utc-millisec'],
[(string) PHP_INT_MAX, 'utc-millisec'],

['grey', 'color'],
['#HHH', 'color'],
Expand Down

0 comments on commit b2dd016

Please sign in to comment.