Skip to content

Commit

Permalink
Fix: Cast to string
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed May 2, 2023
1 parent d986041 commit ec8e9d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<code>$value</code>
<code>$value</code>
</MixedAssignment>
<RedundantCast>
<code>(string) $name</code>
</RedundantCast>
</file>
<file src="src/Vendor/Composer/PackageHashNormalizer.php">
<MixedAssignment>
Expand Down
2 changes: 1 addition & 1 deletion src/SchemaNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private function normalizeObject(
$normalized->{$name} = $this->normalizeArray(
[$value],
$schema,
$pointerToData->append(Pointer\ReferenceToken::fromString($name)),
$pointerToData->append(Pointer\ReferenceToken::fromString((string) $name)),
)[0];
}

Expand Down

0 comments on commit ec8e9d7

Please sign in to comment.