mirror of
https://github.com/filp/whoops.git
synced 2026-09-04 06:32:25 +00:00
Fix usage of __METHOD__ inside of closure
The value of __METHOD__ would be a description of the nearest function-like, i.e. `'{closure}'`
This was detected via static analysis (Phan)
This commit is contained in:
@@ -61,7 +61,7 @@ class FrameCollection implements ArrayAccess, IteratorAggregate, Serializable, C
|
||||
|
||||
if (!$frame instanceof Frame) {
|
||||
throw new UnexpectedValueException(
|
||||
"Callable to " . __METHOD__ . " must return a Frame object"
|
||||
"Callable to " . __CLASS__ . "::map must return a Frame object"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user