Skip to content

Commit

Permalink
Merge pull request #881 from dpfaffenbauer/patch-1
Browse files Browse the repository at this point in the history
Fix undefined variable $metadata
  • Loading branch information
goetas committed Dec 1, 2021
2 parents 6fdc277 + d5fe4af commit 62657a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Debug/TraceableDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public function getLoadedMetadata()

public function load($class): ?ClassMetadata
{
$metadata = null;

try{
return $metadata = $this->driver->load($class);
} finally {
Expand Down

3 comments on commit 62657a1

@magnetik
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @goetas, sorry for the direct ping!
There was no release with this fix included.
Can this be included in a 4.0.2 release? Or is this something missing where I can help?
Thanks!

@goetas
Copy link
Collaborator Author

@goetas goetas commented on 62657a1 Dec 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magnetik
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Ton of thanks !!

Please sign in to comment.