Skip to content

Commit ace1722

Browse files
committed
adding xdebug_info page to webprofilerbundle
1 parent 1226742 commit ace1722

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

DataCollector/ConfigDataCollector.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,21 @@ public function isDebug(): bool|string
195195
}
196196

197197
/**
198-
* Returns true if the XDebug is enabled.
198+
* Returns true if the Xdebug is enabled.
199199
*/
200-
public function hasXDebug(): bool
200+
public function hasXdebug(): bool
201201
{
202202
return $this->data['xdebug_enabled'];
203203
}
204204

205+
/**
206+
* Returns true if the function xdebug_info is available.
207+
*/
208+
public function hasXdebugInfo(): bool
209+
{
210+
return \function_exists('xdebug_info');
211+
}
212+
205213
/**
206214
* Returns true if APCu is enabled.
207215
*/

0 commit comments

Comments
 (0)