Skip to content

Commit

Permalink
bug #4540 fixed typo spl_object_hash in twig extension (Sebastian Ewald)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.0.x-dev branch.

Discussion
----------

fixed typo spl_object_hash in twig extension

Commits
-------

f24ca43 fixed typo spl_object_hash in twig extension
  • Loading branch information
javiereguiluz committed Aug 4, 2021
2 parents 6e0d9f2 + f24ca43 commit cd5fbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/EasyAdminTwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function representAsString($value): string
return sprintf('%s #%s', \get_class($value), $value->getId());
}

return sprintf('%s #%s', \get_class($value), substr(md5(sspl_object_hash($value)), 0, 7));
return sprintf('%s #%s', \get_class($value), substr(md5(spl_object_hash($value)), 0, 7));
}

return '';
Expand Down

0 comments on commit cd5fbac

Please sign in to comment.