Skip to content

Commit

Permalink
Fixes #78 (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinsarca authored Sep 6, 2020
1 parent 628cc76 commit 70ee7d6
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 70ee7d6

Please sign in to comment.