File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,15 @@ public function __construct(
3939 $ this ->query = new Query ($ sql );
4040 }
4141
42- public function bindValue (int | string $ param , mixed $ value , ParameterType $ type ): void
42+ public function bindValue ($ param , $ value , $ type = null ): void
4343 {
44+ $ type ??= ParameterType::STRING ;
4445 $ this ->query ->setValue ($ param , $ value , $ type );
4546
4647 parent ::bindValue ($ param , $ value , $ type );
4748 }
4849
49- public function execute (): ResultInterface
50+ public function execute ($ params = null ): ResultInterface
5051 {
5152 // clone to prevent variables by reference to change
5253 $ this ->debugDataHolder ->addQuery ($ this ->connectionName , $ query = clone $ this ->query );
@@ -55,7 +56,7 @@ public function execute(): ResultInterface
5556 $ query ->start ();
5657
5758 try {
58- return parent ::execute ();
59+ return parent ::execute ($ params );
5960 } finally {
6061 $ query ->stop ();
6162 $ this ->stopwatch ?->stop('doctrine ' );
You can’t perform that action at this time.
0 commit comments