Skip to content

Commit 474422e

Browse files
committed
avoid notices on unset memory info
1 parent a01ea55 commit 474422e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

res/XDebugParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function parseLine($line)
7272
$this->functions[$funcNr]['time.exit'] = $parts[3];
7373
$this->functions[$funcNr]['memory.exit'] = $parts[4];
7474
$this->functions[$funcNr]['time.diff'] = $this->functions[$funcNr]['time.exit'] - $this->functions[$funcNr]['time.enter'];
75-
$this->functions[$funcNr]['memory.diff'] = $this->functions[$funcNr]['memory.exit'] - $this->functions[$funcNr]['memory.enter'];
75+
$this->functions[$funcNr]['memory.diff'] = (int) $this->functions[$funcNr]['memory.exit'] - (int) $this->functions[$funcNr]['memory.enter'];
7676
break;
7777
case 'R'; // Function return
7878
$this->functions[$funcNr]['return'] = $parts[5];

0 commit comments

Comments
 (0)