mirror of
https://github.com/filp/whoops.git
synced 2026-09-16 04:36:20 +00:00
Minor cleanup to Exception\Frame::equals
This commit is contained in:
@@ -233,12 +233,9 @@ 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
|
||||
if (!$this->getFile() || $this->getFile() === 'Unknown' || !$this->getLine()) {
|
||||
return false;
|
||||
}
|
||||
return $frame->getFile() == $this->getFile() && $frame->getLine() === $this->getLine();
|
||||
return $frame->getFile() === $this->getFile() && $frame->getLine() === $this->getLine();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user