File tree 1 file changed +4
-3
lines changed
src/Symfony/Bridge/Doctrine/Middleware/Debug
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,15 @@ public function __construct(
39
39
$ this ->query = new Query ($ sql );
40
40
}
41
41
42
- public function bindValue (int | string $ param , mixed $ value , ParameterType $ type ): void
42
+ public function bindValue ($ param , $ value , $ type = null ): void
43
43
{
44
+ $ type ??= ParameterType::STRING ;
44
45
$ this ->query ->setValue ($ param , $ value , $ type );
45
46
46
47
parent ::bindValue ($ param , $ value , $ type );
47
48
}
48
49
49
- public function execute (): ResultInterface
50
+ public function execute ($ params = null ): ResultInterface
50
51
{
51
52
// clone to prevent variables by reference to change
52
53
$ this ->debugDataHolder ->addQuery ($ this ->connectionName , $ query = clone $ this ->query );
@@ -55,7 +56,7 @@ public function execute(): ResultInterface
55
56
$ query ->start ();
56
57
57
58
try {
58
- return parent ::execute ();
59
+ return parent ::execute ($ params );
59
60
} finally {
60
61
$ query ->stop ();
61
62
$ this ->stopwatch ?->stop('doctrine ' );
You can’t perform that action at this time.
0 commit comments