Skip to content

Commit

Permalink
[framework] fix FormDetailExtension (#3561)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitek-rostislav authored Nov 15, 2024
1 parent c2b61bd commit f8ff964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/FormDetailExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getFunctions()
*/
public function formId($object)
{
if ($object === null) {
if ($object === null || method_exists($object, 'getId') === false) {
return '';
}

Expand Down

0 comments on commit f8ff964

Please sign in to comment.