Skip to content

Commit

Permalink
Fix Psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 24, 2020
1 parent 9e6a3e8 commit 736378d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Internal/ObjectExporter/AnyObjectExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public function export($object, \ReflectionObject $reflectionObject, array $path
$lines[] = '';

foreach ($publicProperties as $name => $value) {
/** @psalm-suppress RedundantCast See: https://github.com/vimeo/psalm/issues/4891 */
$name = (string) $name;

$newPath = $path;
Expand Down

0 comments on commit 736378d

Please sign in to comment.