Skip to content

Commit 2bbc7be

Browse files
committed
Stop exposing configuration and cookie jar on var_dump
1 parent ada8c62 commit 2bbc7be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Context.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,15 @@ public function parent($root = false): ?Context
288288
return $this->_parent;
289289
}
290290

291+
public function __debugInfo()
292+
{
293+
return [
294+
'id' => $this->_id,
295+
'env' => $this->_env,
296+
'projectRoot' => $this->_projectRoot,
297+
'meta' => $this->_meta,
298+
'routeData' => $this->_routeData,
299+
'request' => $this->_request,
300+
];
301+
}
291302
}

0 commit comments

Comments
 (0)