Skip to content

Commit

Permalink
Fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinsarca committed Sep 5, 2020
1 parent e8d34df commit 36b2b55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ReflectionClosure.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,10 @@ public function getCode()
}
if(isset($functions[$id_start_ci])){
$id_start = $functions[$id_start_ci];
} elseif ($nsf !== '\\' && function_exists($nsf . '\\' . $id_start)) {
$id_start = $nsf . '\\' . $id_start;
// Cache it to functions array
$functions[$id_start_ci] = $id_start;
}
}
}
Expand Down

0 comments on commit 36b2b55

Please sign in to comment.