Skip to content

Commit

Permalink
Fix usage of __METHOD__ inside of closure
Browse files Browse the repository at this point in the history
The value of __METHOD__ would be a description of the nearest function-like, i.e. `'{closure}'`

This was detected via static analysis (Phan)
  • Loading branch information
TysonAndre committed Nov 2, 2019
1 parent cde50e6 commit d799d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Whoops/Exception/FrameCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function map($callable)

if (!$frame instanceof Frame) {
throw new UnexpectedValueException(
"Callable to " . __METHOD__ . " must return a Frame object"
"Callable to " . __CLASS__ . "::map must return a Frame object"
);
}

Expand Down

0 comments on commit d799d46

Please sign in to comment.