mirror of
https://github.com/filp/whoops.git
synced 2026-09-12 18:56:22 +00:00
Checking if one of comparing Frames is an Unknown frame to keep them separate
This commit is contained in:
@@ -233,6 +233,12 @@ class Frame implements Serializable
|
||||
*/
|
||||
public function equals(Frame $frame)
|
||||
{
|
||||
|
||||
if(in_array('Unknown', array($this->getFile(), $frame->getFile())) ||
|
||||
in_array(0, array($this->getLine(), $frame->getLine()))
|
||||
) {
|
||||
return false; //we need to keep untrackable frames separate
|
||||
}
|
||||
return $frame->getFile() == $this->getFile() && $frame->getLine() === $this->getLine();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user