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:
Tyson Andre
2019-11-02 18:02:43 -04:00
committed by GitHub
parent cde50e6720
commit d799d46962
+1 -1
View File
@@ -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"
);
}