1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-29 11:17:52 +01:00

Merge pull request #196 from hieblmedia/patch-1

Show the real parameter name for prepared queries.
This commit is contained in:
Barry vd. Heuvel 2015-02-05 08:51:20 +01:00
commit 7b2006e6e0

View File

@ -132,8 +132,8 @@ class TracedStatement
public function getParameters()
{
$params = array();
foreach ($this->parameters as $param) {
$params[] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
foreach ($this->parameters as $name => $param) {
$params[$name] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
}
return $params;
}